Skip to main content
Topic: Problems with User Authentication... (Read 4198 times) previous topic - next topic

Problems with User Authentication...

I attempted to add User Authentication to my application and facing some strange issues.

1. Excluded pages not showing up without Login
I am developing a small Book Database application for personal use which has Books table. I set "books/list" as "No Authentication required" on Authentication screen. I published the application with an anticipation that application will show me "Books" menu which is set to point to Books list. But it took me to Welcome and Login screen; this is strange.

2. Hide instead of saying No Permission
Secondly, I created a User Role "Manager" which does not have "Delete" permission on Books table. I could login correctly, but I saw "Delete" button for the Books. I clicked that and then application did show me error message that I do not have Permission to perform this action. I find this very confusing. I was expecting PHPRad to hide the menu entirely which does not qualify per User Role Permissions.

3. User Role - SQL Data Type?
I see User Role field is required in Users table. What data type to be set for this field?

4. User Profile Image not working
No matter which Image I select, the application is not picking up the image correctly. It uploads the image well and I can see the image in uploads folder. But it just not picking up that image in User Profile and so it falls back to the default "no image" image for User Profile. I checked PHPRad videos on Youtube and I could see that the Profile Image thing is working good. What might be going wrong in my case then? Please advise.

Re: Problems with User Authentication...

Reply #1
I have the same things happening.  I just spent several hours rebuilding all my pages up from v2.5.5 to v2.5.7, and just started to implement the Roles Management, and same thing.  Now the second time I enter Roles management I get an exception error.
(same as in v2.5.5)  I thought this was fixed.  :o

Re: Problems with User Authentication...

Reply #2
In fact, now that I've played with it some more... After adding a "DataEntry" role... after the exception error (and exiting and reloading the project), the role is now missing... (it was saved prior to the crash)... See screenshot attached...

 

Re: Problems with User Authentication...

Reply #3
Looks like we need to wait for the update...