Consultor Eletrônico



Kbase 20277: How to Create an Application Where New Users Can Create User IDs and Passwords.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   31/07/2009
Status: Verified

GOAL:

How to create an application where new users can create user IDs and passwords.

GOAL:

How to create a user when receiving error 710

GOAL:

** Your Password and Userid do not match. (710)

FIX:

The following code outlines how to create a new user:
CREATE _user.
ASSIGN _user._userid = "test"
_user._user-name = "test"
_user._password = Encode("test").

This code creates a new user and encodes the password. The new username and password can be used when you connect to the database.
If running this or similar code without the Encode on the password the creation of a new user does not work. Without Encode, the application considers the value of _password to be the encoded password and therefore returns the error when it attempts to login. This is because it is looking for the unencrypted value of the entry in the _password field.