Cannot Change Password

A place for users and developers of the Xataface to discuss and receive support.

Cannot Change Password

Postby 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!
pkennedy
 
Posts: 10
Joined: Tue Oct 02, 2012 3:05 am

Re: Cannot Change Password

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Cannot Change Password

Postby 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
pkennedy
 
Posts: 10
Joined: Tue Oct 02, 2012 3:05 am

Re: Cannot Change Password

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Cannot Change Password

Postby pkennedy » Wed Oct 03, 2012 9:02 am

Sounds good. I'll give it a try and let you know.
pkennedy
 
Posts: 10
Joined: Tue Oct 02, 2012 3:05 am

Re: Cannot Change Password

Postby pkennedy » Sat Oct 06, 2012 12:19 am

That worked, thanks much!
pkennedy
 
Posts: 10
Joined: Tue Oct 02, 2012 3:05 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 9 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved