Hi there,
Can anyone help me pls,
I need to customize the default login error messages.(e.g.: Invalid Credentials, Exceeded attemps, etc...)
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.
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.
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:
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.
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...
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
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...
I dont think so, as i know, its made to these cases, so you can use it as you wish