Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 Sep 2019, 13:49
doc55 doc55 is offline
 
Join Date: Aug 2019
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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

When I check

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Here is what I get back:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #2  
Old 11 Sep 2019, 10:43
doc55 doc55 is offline
 
Join Date: Aug 2019
Anyone with any thoughts?
Reply With Quote
  #3  
Old 26 Sep 2019, 01:07
doc55 doc55 is offline
 
Join Date: Aug 2019
Just bumping this question again for some help.
Reply With Quote
  #4  
Old 26 Sep 2019, 01:48
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
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.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:26.

Layout Options | Width: Wide Color: