Welcome Guest, Not a member yet? Register   Sign In
Myth:Auth $allowRemembering on a per user basis
#1

Most of my users will not have access to any sensitive data in my web app. A few users will have access to very sensitive data. I want the convenience of 'remember-me' fo most of my users but not the ones with access to the very sensitive data. 

I don't think this behavior is natively supported by Myth:auth. 
What would you do to implement this?
Reply
#2

(This post was last modified: 03-13-2021, 12:50 PM by InsiteFX.)

Check in the form for your users if they have read etc; access to data then remove the Remember Me checkbox from the form.

Check their privileges.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

The 'Remember Me' checkbox on the login form is displayed before the the user has logged in so I can't check their permissions to decide whether or not to display the checkbox.

I could check their permissions immediately after they have logged in and then delete their long term log in. Does Myth/Auth have a net way to do this?
Reply
#4

I would look at the code and see where he is setting the remember me token and cookie.

That should point you into the correct way of handling it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

thank you.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB