I have a weird problem I couldn't fix it for sometime now, which is I created a sign in & sign up page but when I sign up then in I get "the username and password are not correct".
Everything seems good, can't figure out the issue
And the database seems fine:
Hi Faris,
I have updated your oml and checked its working.
but have security warning show you need to handle it and folloe OS best practise .
Regards
Rahul
Hi Farish,
When you save password you need to encrypt first after save it in DB.Because USers Entity keep encrypt password and when user login it will decrypt automatic.
see below image-
Take referance from Users module server action "EncryptPassword"
Hope this will help you.
RegardsRahul Sahu
Rahul Sahu wrote:
To do this I have to create a new assignment and input parameter?
What should I put in the input parameter data type
Also this expression doesn't work with me
EncryptPassword(User.Username, User.Password)
Faris Abdullah Almozini wrote:
I have provided oml in above post please look into it once.
Also you can take one local variable for password and assign it with password inptut and when use createUser action before assign it to User entityt with encrypt format.
RegardsRahul
Sorry I haven't notice the OML attached, I did everything exactly like the OML you provided and the passwords are encrypted in the database:
But I still have the same error as of Invalid username/password.
My login:
My SaveOnClick:
This's the OML of my application