[RESOLVED] Account lock doesnt work in 4.2

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Hey guys,

the account lock feature doesnt work in v4.2. Can you pls look into this ?

UPDATE: I see When someone clicks on "Activate Security Lock" it sends an email to the user with unlock hash but the account details page still shows unlocked and user info is still visible..
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Re: Account lock doesnt work in 4.2

Another issue:: If someone logs into the website using social media (i tried facebook n twitter), they dont see the full page, They only see until the "Confirm Password" box and nothing underneath it (Account avatar and Update Account button)

I also see some HTML validation errors. Seems like there are some coding issues with account_edit.html page. Can you guys check pls.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Re: Account lock doesnt work in 4.2

Adam, Simon: can you look into this pls.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Re: Account lock doesnt work in 4.2

Hi Sukman,

Is this with the latest 'flow' theme?

Thanks,
Adam.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Re: Account lock doesnt work in 4.2

yes even in the new flow theme, i see these issues. The message on the top right comes up saying account has been locked but the webpage still shows unlocked and i can still see all the user info in there..
Now it does email the code to the user and i see the code is in the users table in the Database in the AccountLockHash field and the LockStatus also gets updated to 1 instead of 0 which means it locks up from the database side.. so i guess its just the code in the page itself not working as it should.

Another thing here is that when someone logs in using their social media accounts, i can only see upto "confirm password" box and nothing under it.

So definitely something in the new flow theme > account_edit.html page code..
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Re: Account lock doesnt work in 4.2

I've fixed the issue with the account lock. It's patched into the latest release but it'll form part of the next release notes for v4.2.1.

You can patch it in by uploading the attached file into \core\includes\
 

Attachments

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Re: Account lock doesnt work in 4.2

Another issue:: If someone logs into the website using social media (i tried facebook n twitter), they dont see the full page, They only see until the "Confirm Password" box and nothing underneath it (Account avatar and Update Account button)

This is also fixed. It does need to hide the option to edit the avatar as this is always driven from their social media account, however the button should be there to update. Patched file attached.
 

Attachments