Cannot Change Password

Archived from the Xataface Users forum.

pkennedy — Tue Oct 02, 2012 3:26 am

Steve,

Thanks for building such an amazingly flexible framework! I’m not sure I entirely understand the authentication/permissions functionality in Xataface, but I must be missing something simple, because even though I’m logged in, I get a “You must be logged in to change your password” error message whenever I click the “Change Password” link. Any ideas? Thanks!


shannah — Tue Oct 02, 2012 8:06 am

Strange. What authentication mechanism are you using? Just the standard auth type? Does it say “Logged in As yourusername” in the upper right of the page?
What version of Xataface are you using?

-Steve


pkennedy — Tue Oct 02, 2012 4:04 pm

Apologies if my naiveté shows, but I’m using the getPermissions function in the Application Delegate as follows, then opening specific permissions on each table.

Code: Select all
function getPermissions(&$record){       $auth =& Dataface_AuthenticationTool::getInstance();       $user =& $auth->getLoggedInUser();       if   ($user && ($user->val('Role') == 'ADMIN'))           {return Dataface_PermissionsTool::ALL();}       else {return Dataface_PermissionsTool::NO_ACCESS();}             }

Yes, it does say “Logged in As yourusername”. I’m running 1.3rc6.

Thanks!
Patrick


shannah — Wed Oct 03, 2012 8:17 am

I think this bug was fixed. If you update to 1.3.2 it should fix the issue.

-Steve


pkennedy — Wed Oct 03, 2012 9:02 am

Sounds good. I’ll give it a try and let you know.


pkennedy — Sat Oct 06, 2012 12:19 am

That worked, thanks much!