Hi,
I have a couple of questions regarding user management.
In a subform (like below), an entity (hospital or other) can add/change nubuilder users accounts. Questions:
1) How would I encrypt the password on change/submit?
2) Can I based on the parent form (there are two different parent forms) set the access-level upon creating a new user?
3) How do I copy the email address into sus_code and sus_login_name?
Thank you!
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Setting passwords and login data
-
- Posts: 27
- Joined: Sun Feb 07, 2021 8:07 pm
Setting passwords and login data
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4297
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Setting passwords and login data
Hi,
1. Look at the After Save event of the user form to see how it's done.
(Direct access to the code is e.g. http://localhost/nubuilder4/index.php?f ... =nuuser_AS )
2 + 3: Also use the After Save event to run an update query.
Let me know if you need further information.
1. Look at the After Save event of the user form to see how it's done.
(Direct access to the code is e.g. http://localhost/nubuilder4/index.php?f ... =nuuser_AS )
2 + 3: Also use the After Save event to run an update query.
Let me know if you need further information.
-
- Posts: 27
- Joined: Sun Feb 07, 2021 8:07 pm
-
- Posts: 27
- Joined: Sun Feb 07, 2021 8:07 pm
Re: Setting passwords and login data
Regarding 2. How do I tell the user admin subform to set a specific access level based on the parent form?
I have two different parent forms, each requiring a different type of access level.
One sus_zzzzsys_access_id= 001
the other sus_zzzzsys_access_id= 002
I have two different parent forms, each requiring a different type of access level.
One sus_zzzzsys_access_id= 001
the other sus_zzzzsys_access_id= 002
-
- nuBuilder Team
- Posts: 4297
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Setting passwords and login data
The PHP code will be run for the parent form only. So you know which access level to set.
-
- Posts: 27
- Joined: Sun Feb 07, 2021 8:07 pm
Re: Setting passwords and login data
Ok, yes. The code is not executed. So that doesn't work. Found a rather complicated workaround.