Page 1 of 1

Cannot Change Password

PostPosted: Tue Oct 02, 2012 3:26 am
by pkennedy
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!

Re: Cannot Change Password

PostPosted: Tue Oct 02, 2012 8:06 am
by shannah
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

Re: Cannot Change Password

PostPosted: Tue Oct 02, 2012 4:04 pm
by pkennedy
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

Re: Cannot Change Password

PostPosted: Wed Oct 03, 2012 8:17 am
by shannah
I think this bug was fixed. If you update to 1.3.2 it should fix the issue.

-Steve

Re: Cannot Change Password

PostPosted: Wed Oct 03, 2012 9:02 am
by pkennedy
Sounds good. I'll give it a try and let you know.

Re: Cannot Change Password

PostPosted: Sat Oct 06, 2012 12:19 am
by pkennedy
That worked, thanks much!