224
Views
8
Comments
How do I override the system invalid login and login attempts exceeded messages?
Application Type
Mobile, Reactive
Service Studio Version
11.53.41 (Build 62020)

Hi there,

Can anyone help me pls,

I need to customize the default login error messages.(e.g.: Invalid Credentials, Exceeded attemps, etc...)

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Vivaldo,

Did you check the Login pages of the app (or theme)? OutSystems does not have a hidden login screen that you cannot customize, it's all part of the app.

UserImage.jpg
Vivaldo Mendes Cândido

I don't know if did not understood what you meant, but what i actually want is to override the default system messages like: "Invalid Username or Password!" with my own.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Vivaldo,

If you have created a default app and module, you will find a "DoLogin" action in the "Authentication" folder under "Server Actions":

It is populated by a single action, User_Login. User_Login is responsible for generating an exception if the username/password is invalid (if you clone it, you can take a peak inside).  The "Invalid username or password" is set in that action. If you want to override it, you can add an "Invalid Login" exception handler in DoLogin, and override the message you get:


UserImage.jpg
Vivaldo Mendes Cândido


Actually i was already doing that but Invalid Login can return different messages based on the validation process, i took that approach i would be lefting out the other scenarios...


I think i'll just have to map each exception message response with a search string action in order to accomplish what i want... althought that doesn't looks right.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

I agree that that's not the approach you'd normally want, and it's prone to being broken depending on Locale, and whether OS changes the messages in the future...

2024-11-25 22-05-29
Sergio Aznar Guallar

Hi Vivaldo,

you can customize the invalid login message by using a invalid login handler in the login action of the login screen


To handle too many attempts, you can create a manual count of invalid login, as shown in the screenshot


Kind regards,

Sergio

UserImage.jpg
Vivaldo Mendes Cândido

Thanks Sergio,

But that aproach looks like reinventing the wheels, as the Outsystems platform already does that, i was wondering if there's no other way arround...

2024-11-25 22-05-29
Sergio Aznar Guallar

I dont think so, as i know, its made to these cases, so you can use it as you wish

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.