Hi @steve-ir,
Thanks for the reply.
You are supposed to encrypt the password, which is the recommended solution. You can find more details here.
Additionally, the script I shared is a pseudo-javascript example of how you could implement the login function. For language-specific examples, read Language-specific script examples.
Generally, you should be able to use one of those scripts to securely authenticate your users without having to build the script yourself. Have you had a chance to try it yet?
Thanks,
Rueben