CoffeeLover Posted November 8, 2021 Report Share Posted November 8, 2021 Hi All, Users on my app have the ability to search records based on their authfield values which they can set in profile management. How can I have the users authfields updated if changed? (without them logging off and loggging back in). Kind regards CoffeeLover Quote Link to comment Share on other sites More sharing options...
0 KlisaN137 Posted November 8, 2021 Report Share Posted November 8, 2021 Hi @CoffeeLover, To update user authentication fields, you can use Single Record Update DataPage, with the Users table as the Data Source. Then you can restrict access to the page based on Authentication: https://howto.caspio.com/datapages/forms/update-forms/ I'm not sure what do you mean by "How can I have the users authfields updated if changed? (without them logging off and loggging back in)", could you specify a little bit more? CoffeeLover 1 Quote Link to comment Share on other sites More sharing options...
0 CoffeeLover Posted November 9, 2021 Author Report Share Posted November 9, 2021 Hi @KlisaN137, Thanks for your reply. I will try and explain my work flow a bit better. I have 2 datapages both using the same authentication to login. - Edit Profile Setting - Quick Search Quick Search datapage gets the users preferences (which are set in Edit Profile Setting) and searches based on that criteria. There is no form for this search. If a user changes their preferences in Edit Profile Setting the data is updated however all auth fields remain the same and only update when the user logs out and logs back in. For example - A user logs in with the authentication and changes the criteria from "Accounts" to "Human Resources" in Edit Profile Setting. The data updates to "Human Resources" but the auth field remains "Accounts" until the user logs out and logs back in. I am trying to find a way where the auth fields refresh with the new values without the user having to logout and log back in. Hope this is clearer. Kind regards CoffeeLover Quote Link to comment Share on other sites More sharing options...
0 KlisaN137 Posted November 9, 2021 Report Share Posted November 9, 2021 Hi @CoffeeLover, Thank you for explanation. As far as I can see, because the values of authentication fields are taken at the moment of login, they remain unchanged during the entire session. Only way to refresh data is starting a new session - log out and then again log in. I found this Forum thread about that also: I'm guessing that for required workflow, you might need to use additional table. CoffeeLover 1 Quote Link to comment Share on other sites More sharing options...
0 CoffeeLover Posted November 10, 2021 Author Report Share Posted November 10, 2021 Hi @KlisaN137, I really appreciate the time you have taken to help me out. I think my best bet is to change my workflow or possibly create another table to pull this data from. Kind regards CoffeeLover Quote Link to comment Share on other sites More sharing options...
0 Aether Posted October 28, 2022 Report Share Posted October 28, 2022 Hello @CoffeeLover, one way to received the authentication parameter value without logging-off and log-in again after updating the user profile is to pass the fields parameter (on-exit) upon form update. Those parameter will retain on the browser's cache as long as it's not being cleared or close. Quote Link to comment Share on other sites More sharing options...
Question
CoffeeLover
Hi All,
Users on my app have the ability to search records based on their authfield values which they can set in profile management.
How can I have the users authfields updated if changed? (without them logging off and loggging back in).
Kind regards
CoffeeLover
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.