Page 1 of 1

Login Tools - User Role

Posted: Fri May 01, 2020 8:17 am
by trevorm
Hi,

I cannot find anywhere in the notes or in the various setup dialogues of the LOGIN Tools where or how you assign User Roles to Users.

I understand Roles are always needed as part of the system verification process on login. However, in my published site, the User Role field of the Login Admin tool is not present in the New User function or in the Admin table view of existing users.

My published login system is working fine but I cannot see the User Role field in; Admin, Signup, New User or Edit User on the relevant published pages.

I note that the User database "Role" field is "NULL" for all users.

Pablo confirmed to me that the Protect Page tool setup dialogue must have the Users and Roles declared otherwise no one can login. However, I cannot understand how a role is assigned to a user or is this not relevant? If it is not relevant and not recorded in the database, why list allowed Users and Roles in the Protect Page tool instead of just declaring allowed Users?

Thanks.

Re: Login Tools - User Role

Posted: Fri May 01, 2020 8:59 am
by Pablo
User roles are optional.

You can add/edit user roles in the proprieties of the login admin object in the workspace.

You can assign roles to users in the (online) admin tool.

Re: Login Tools - User Role

Posted: Fri May 01, 2020 1:15 pm
by trevorm
Hi Pablo,

I did not appreciate that user roles were optional. However as we have various areas of the site that only certain Users can access and which the Users vary from page to page, then user Roles offer that possibility of appropriate control.

However, I have look again and I can't see any reference to Roles in the online (published) Admin tool.

The only references I can see are in the workspace (Admin Tool dialogue box), which are:-
A) Behaviors - Users Roles
B) Text - Role

As I said the Role field has been added to the user database but I can't see how to populate it through the Login tools

Re: Login Tools - User Role

Posted: Fri May 01, 2020 1:44 pm
by Pablo
Image

Re: Login Tools - User Role

Posted: Fri May 01, 2020 3:03 pm
by trevorm
Sorry Pablo but I can assure you the Role field (nor the browse field) are not present in any of sign up. New User in admin or edit in Admin published pages.

Re: Login Tools - User Role

Posted: Fri May 01, 2020 3:42 pm
by Pablo
Are you using the latest version of the software?

Re: Login Tools - User Role

Posted: Fri May 01, 2020 3:48 pm
by trevorm
Yep - 15.4.0 - Mar 27th 2020 (Only just purchased it around that time) It says its the latest in check for updates

Re: Login Tools - User Role

Posted: Fri May 01, 2020 3:54 pm
by Pablo
Is the 'Version' property set to '14'?

Re: Login Tools - User Role

Posted: Fri May 01, 2020 4:06 pm
by trevorm
Where do I find that out?

Re: Login Tools - User Role

Posted: Fri May 01, 2020 4:12 pm
by trevorm
Just found it it is set to 8

Re: Login Tools - User Role

Posted: Fri May 01, 2020 5:12 pm
by Pablo
Please change to '14'. See also the help.

Re: Login Tools - User Role

Posted: Fri May 01, 2020 10:47 pm
by trevorm
Ok
I have changed version to 14 and this prevents the log in forms displaying beyond the actual login.
I have read the help but I see nothing regarding version. I have complied with the other requirements as far as I can see.
Having changed version is it necessary to delete the pages from the page manager and start again?

Re: Login Tools - User Role

Posted: Sat May 02, 2020 6:26 am
by Pablo
You will have to update the database so it has all the required fields.

Re: Login Tools - User Role

Posted: Sat May 02, 2020 7:27 am
by trevorm
Role field etc are there! Will they be different if done in version 8?

Re: Login Tools - User Role

Posted: Sat May 02, 2020 10:09 am
by Pablo
Yes, the structure of versin 8 is different.
Please make sure all database fields exist.

If it still does not work then check the PHP logs on the server for errors.

Re: Login Tools - User Role

Posted: Sat May 02, 2020 1:44 pm
by trevorm
Hi Pablo

I deleted the DB and remade and use the Make DB script to create the fields. The Admin is now working showing the Role field as well as all of he other fields. Thanks
The login page isn’t working now but hopefully I can sort that out.
Thanks for your help