How to Reset User Password in 3.11?

Find and share HowTos to various installations / configurations!
Search

Post Reply
3 posts • Page 1 of 1
AngusETM
Posts: 37
Joined: Tue Apr 25, 2017 4:48 pm

How to Reset User Password in 3.11?

Post 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
Last edited by AngusETM on Sun Aug 04, 2019 7:50 am, edited 1 time in total.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to Reset User Password in 3.11?

Post 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

AngusETM
Posts: 37
Joined: Tue Apr 25, 2017 4:48 pm

Re: How to Reset User Password in 3.11?

Post by AngusETM »

Thanks Leopold. We've written our own function based on that method.

Post Reply
3 posts • Page 1 of 1