52
Views
7
Comments
Solved
Problem with user sign in


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:





2026-02-26 06-29-24
Rahul
 
MVP
Solution

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


T1Operations.oml
2026-02-26 06-29-24
Rahul
 
MVP

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.


Regards
Rahul Sahu

UserCreate.oml
UserImage.jpg
Faris Abdullah Almozini

Rahul Sahu wrote:

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.


Regards
Rahul Sahu

 

 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)



2026-02-26 06-29-24
Rahul
 
MVP

Faris Abdullah Almozini wrote:

Rahul Sahu wrote:

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.


Regards
Rahul Sahu

 

 To do this I have to create a new assignment and input parameter?

What should I put in the input parameter data type

 

 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.


Regards
Rahul


UserImage.jpg
Faris Abdullah Almozini

Rahul Sahu wrote:

Faris Abdullah Almozini wrote:

Rahul Sahu wrote:

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.


Regards
Rahul Sahu

 

 To do this I have to create a new assignment and input parameter?

What should I put in the input parameter data type

 

 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.


Regards
Rahul


 

 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.




UserImage.jpg
Faris Abdullah Almozini

My login:


My SaveOnClick:




UserImage.jpg
Faris Abdullah Almozini

This's the OML of my application


2026-02-26 06-29-24
Rahul
 
MVP
Solution

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


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