Invalid username and password error


Hi

I created a log in page but every time I log I keep having this error "invalid username or password"

After my search, I found out that my problem was not having Encrypted Password action, I just added it to my module but how can I use it?


Hi Faris,

How are you implementing your login action? Are you using the User_Login Server Action from the Users module?


If you do, then the password should not be encrypted when you call that server action.


Kind regards,

Rui Barradas

Hi,

can you share the error from service center?

Cheers

Rui Barradas wrote:

Hi Faris,

How are you implementing your login action? Are you using the User_Login Server Action from the Users module?


If you do, then the password should not be encrypted when you call that server action.


Kind regards,

Rui Barradas

 

Here how I'm implementing it, I use user_login server action and it wasn't working then I tried using encryptpassword and still not working.


Miguel Verdasca wrote:

Hi,

can you share the error from service center?

Cheers

 How to see the errors in the service center?

 

Hi Faris,

In Serive studio click here it will redirect to service center and See monitoring Tab and find Error log




or you can direct enter url for Service Center

https://xxx.outsystemscloud.com/servicecenter 

where xxx is your domain


regrads

Rahul Sahu

You just have to do what Raul mentioned.


Open your service center, go to Monitoring and then on the first tab, you have the errors. You run your application and make the use case that is generating an error, and after getting the error, you go to the service center, and do the detail of the error you gave.

In case you don't know how you can go to Service Center, in your Service Studio you just need click in the following button


Cheers

Thanks for the clear explanation, this the details of the error:


Hi Faris,

Error like your username and password is incorrect.

you need to check username/password or may be try with email id which is in Users application when you provide user registred time.

Also check if you made self created login page than all process is right or if you are using outsystem default login than need to check once email_id.


Regards

Rahul sahu

Rahul Sahu wrote:

Hi Faris,

Error like your username and password is incorrect.

you need to check username/password or may be try with email id which is in Users application when you provide user registred time.

Also check if you made self created login page than all process is right or if you are using outsystem default login than need to check once email_id.


Regards

Rahul sahu

 I checked my username and password I'm pretty sure I entered it correctly.

You mean I should use the email_id instead of username in log in?

 

Faris Abdullah Almozini wrote:

Here how I'm implementing it, I use user_login server action and it wasn't working then I tried using encryptpassword and still not working.

 

Hello Faris,

Hope you're doing well.

Since you are using the User_Login server action from the Users Module, you don't need to encrypt the password when you're calling that action.

Responding to your previous question, you should always use your username (and not the e-mail, unless the e-mail is the same as the username).


However, it is important to mention some things.

Firstly, you need to verify which is the User Provider that you're using in your module / application.


You can find these properties in the module properties.

Make sure your User Provider Module is set to Users. This will allow you to use the users created in the Users application to enter in your application. Please keep in mind that these users are different from Service Center users and from OutSystems website users.


Secondly, you need to create the user(s) that you want to use in your application. Like I said before, you can do this using the User application (or creating the record directly in the User System Database Entity). This User application is an OutSystems application that is installed by default with the platform that allows you to create and manage users.

In order to do this, you should access into the users application in your browser: <your-server>/Users


By default, you always have the admin user that you may use to enter the application.

You can try:

Username: admin

Password: admin


Kind regards,

Rui Barradas

Faris Abdullah Almozini wrote:


Hi

I created a log in page but every time I log I keep having this error "invalid username or password"

After my search, I found out that my problem was not having Encrypted Password action, I just added it to my module but how can I use it?


Hi Faris ,

Can you share OML File..or else you can check when you are using Encrypted Password action then you are using createorupdate action in that action in password attribute u can pass the value of EncryptPassword.EncryptedPassword.i have shown in below screenshot.


I hope it will help you !.
Thanks. 

Sorry for the late reply, I did all the things you told me guys but no luck, here's how the passwords and usernames are saved:

Hello Faris,

Yes, that seems to be correct. Because the passwords are encrypted when they are saved in the database.

However, when you call the User_Login action, you should pass the real value of the password (not encrypted).


Kind regards,

Rui Barradas

Did you try login to  Outsystems users management application with the user/password

User Management App Url:http://<environment address>/Users

Rui Barradas wrote:

Hello Faris,

Yes, that seems to be correct. Because the passwords are encrypted when they are saved in the database.

However, when you call the User_Login action, you should pass the real value of the password (not encrypted).


Kind regards,

Rui Barradas

 

Yup thats what I did, but it keep giving me invalid username or password I think there's something I did something  was not right

Tom Zhao wrote:

Did you try login to  Outsystems users management application with the user/password

User Management App Url:http://<environment address>/Users

 Yes I did, and created a username there and it signed me in to my app once but then I got the error again

 

Rui Barradas wrote:

Hello Faris,

Yes, that seems to be correct. Because the passwords are encrypted when they are saved in the database.

However, when you call the User_Login action, you should pass the real value of the password (not encrypted).


Kind regards,

Rui Barradas

Also is it normal for the username value to be (0)? even though I wrote the username with letters.

 

Hello Faris,

To be honest, it is not normal. I was about to point that in my previous post, but it could be on purpose. How did you create that username? Did you use the Users application?

https://<your-server-address>/Users


Kind regards,

Rui Barradas