![]() |
|
Thread Tools |
#1
|
||||||||||||
|
||||||||||||
Password Update
I'm trying to write a script that updates user's password based on the user's username, but I get it to work.
I need this script as part of another larger script integration, so it's not that people will be able to change everyone's password. I have multiple other security checks before I get to this script. The purpose of this portion is just to update the password without asking for the current user password. Here is the script that I'm using
When I check
Here is what I get back:
I know there is a vB_DataManager_User that probably can be used, but I don't know how to use it or if it will be able to update the password. I really appreciate if someone could help me figure this out. Thanks No members have liked this post.
|
#2
|
|||
|
|||
Anyone with any thoughts?
No members have liked this post.
|
#3
|
|||
|
|||
Just bumping this question again for some help.
No members have liked this post.
|
#4
|
|||
|
|||
Where do you get the "$usernam" (without "e" at the end) variable from? You also don't check if $vb_userinfo contains valid user information. That needs to be adjusted first.
Once you have that fixed, the save API call throws the no_permission error if the current logged in user does not equal the selected user (to be updated) and is not an administrator. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:42.