Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 preventing password2 changing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sancess
Starting Member

37 Posts

Posted - February 20 2017 :  11:06:38  Show Profile  Reply with Quote
Hi,

How to prevent or disabling password2 changing when using forgot password feature?

I have 3 admin in my store, it happen that one of them forgot the password and resetting the password, however it looks password2 was changed as well

is there any way to disable the password2 changing?

need advise

Thanks

Incezz

manilow
VP-CART New User

France
134 Posts

Posted - February 21 2017 :  04:06:00  Show Profile  Visit manilow's Homepage  Reply with Quote
Hi Incezz,

Password2 is set in your shopconfig.asp file:

const SecondPassword="your2ndpassword"

As long as you leave that file settings unchanged, password 2 should remain unchanged.

Erik
www.aquathermia.com
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - February 21 2017 :  09:03:51  Show Profile  Reply with Quote
@sancess, you need to remove second password routine & form in shopresetpassword.asp
Go to Top of Page

sancess
Starting Member

37 Posts

Posted - February 21 2017 :  12:00:07  Show Profile  Reply with Quote
@manilow

my other admin user can change the second password though forgot password feature

@daniel
i''m blind with programming, can you show me the exact line? and code?

Thanks!
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - February 22 2017 :  06:48:46  Show Profile  Reply with Quote
Also me, I was just guessing. Better you submit the issue to their helpdesk. I believe it needs to customize the code.
Go to Top of Page

sancess
Starting Member

37 Posts

Posted - February 22 2017 :  12:56:26  Show Profile  Reply with Quote
i''m searching on that file and found many password2 references, so i''m not sure which is the correct one
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - February 27 2017 :  06:17:17  Show Profile  Reply with Quote
@sancess.. better create a helpdesk ticket to submit your issue
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - February 27 2017 :  13:40:16  Show Profile  Visit serjtankian's Homepage  Reply with Quote
here''s what i did, modifying shopresetpassword.asp file:

around line 416

if trim(username) = "" or trim(password) = "" or trim(authcode) = "" or trim(password2) = "" or trim(resecondpassword) = "" or trim(resecondpassword2) = "" then


modified to:

if trim(username) = "" or trim(password) = "" or trim(authcode) = "" or trim(password2) = ""then


commented line 442-454


 ''if session("restadmintype") = "SUPER" then
 ''if len(resecondpassword) < 5 then
 ''msg = msg & "Second Password: at least 5 alpha-numeric (a-z, A-Z, 0-9) characters."
 ''else
 ''if chkstrongpassword(resecondpassword) = false then
	 ''msg = msg & "Second Password: must contains alpha-numeric (a-z, A-Z, 0-9) characters."
	 ''end if
 ''end if

 ''if cstr(resecondpassword) <> cstr(resecondpassword2) then
 ''msg = msg & "Confirm Second Password: does not match with Second Password."
 ''end if
 ''end if


removing form around line 567-574



 <tr>
 <td align="right" class="datatable">Enter Second Password</td>
 <td><input class="txtfieldlogin" type="password" name="secondPassword" /></td>
 </tr>
 <tr>
 <td align="right" class="datatable">Enter Second Password again</td>
 <td><input class="txtfieldlogin" type="password" name="secondPassword2" /></td>
 </tr>


this will remove second password request




*peace - serj*
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - February 28 2017 :  05:10:50  Show Profile  Reply with Quote
good finding Serj, I will try in my store. thank you.
Go to Top of Page

sancess
Starting Member

37 Posts

Posted - February 28 2017 :  10:11:45  Show Profile  Reply with Quote
Awesome! it works like a charm Serj!

Thanks!

Incess
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - March 01 2017 :  11:52:32  Show Profile  Visit serjtankian's Homepage  Reply with Quote
You''re welcome!



*peace - serj*
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00