Page 1 of 1

How to Reset User Password in 3.11?

Posted: Fri Nov 02, 2018 1:42 am
by AngusETM
Hi all,

In version 3.11 is it possible to reset the password of a user? For example, if a user has forgotten his password. In version 3.15 there is a "reset" button, but this is not present in 3.11. This means that if a user forgets his password it seems to be necessary to create a new user account.

If this functionality is not present, we might consider using the code from the "Reset" button in 3.15 to implement a reset functionality. Are there any difficulties which might prevent this?

Kind regards,
Angus

Re: How to Reset User Password in 3.11?

Posted: Tue Nov 06, 2018 10:08 am
by leoknipp
The function changePassword_reset() which is used in 3.15 to reset the password is not defined in 3.11.
Therefore you cannot use the same function in 3.11.

You can possibly implement your own functionality which writes the new crypted password to the datapoint element _Users.Password. Please take into account that the dp element is a dyn_string.
The function in 3.15 checks if the user currently logged on has "administration" permission before the password is changed.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: How to Reset User Password in 3.11?

Posted: Wed Nov 07, 2018 3:08 am
by AngusETM
Thanks Leopold. We've written our own function based on that method.