The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have some sensitive private data userfields in my user profiles.
I want to force a user to log in again to access at least his/her profile edit page (or force log out and show again log in form before accessing this page). When somebody has the "remember me" option set it is very likely that he/she leaves an opened session in a public place and somebody can view this data, read his/hers PMs and so on. How can I accomplish that on vb38x? deleting user session in DB alone does not work - I have to reset user's cookies, too I believe. This snippet put into init_startup hook does not work: PHP Code:
![]() |
#2
|
|||
|
|||
![]()
I'm not sure I completely understand what you're trying to do, but I think vbsetcoookie sets the cookies to be returned, which won't be seen until the next page load. Maybe what you want to do is also clear $vbulletin->GPC[COOKIE_PREFIX . 'sessionhash'].
|
#3
|
||||
|
||||
![]()
Thanks kh99,
lets say I have here: https://vborg.vbsupport.ru/profile.php?do=editprofile a private profile user field with a user's home address or whatever sensitive data. I would like to make this area more secure, as I said, when a user logs in on a public computer and forgets to log out, somebody else can easy access https://vborg.vbsupport.ru/profile.php?do=editprofile and see the data which is supposed to be private. In other words - i'd like to make the usercp area secure as modcp or admincp area which requires logging in after certain inactivity time ignoring the ticked "Remember me" option. |
#4
|
|||
|
|||
![]()
Sorry - I did get what you were trying to do, I guess what I meant was that I'm not sure exactly how you were planning to do it.
|
#5
|
||||
|
||||
![]()
Ah, sorry, my English is not that good as I thought. I did some (I believe) extensive search to find something helpful, but failed. Thanks for help.
Maybe there is a modification that uses the vbulletin core (include global.php) and for its purposes resets a user's session and requires him to log in again for security reasons to access its pages - then i suppose i would find an answer within that mod/hack. |
#6
|
|||
|
|||
![]()
No, it's my English - I didn't say what I meant.
I know there's one place in vBulletin where it asks you to log in again - that's when you try to use "delete as spam" on a post (around line 137 in inlinemod.php). It seems to use show_inline_mod_login() and inlinemod_authenticated() which are in includes/modfunctions.php. These can't be used directly (because they check for moderating permissions) but maybe you can figure out how they work and adapt them. |
#7
|
||||
|
||||
![]()
vB forces moderators to log in again during their session to do inline moderating (if the admins have that option on), so why not check out that code?
|
#8
|
||||
|
||||
![]()
hA! thanks, good trace I suppose, I'll check that out.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|