Question about using the user service ‘out of the box’ for authentication. I know that anyone can view the client code, so my question is, is my content secure when I do this:
My ‘home page’ presents several links, one allows ‘partners’ to login and see their content. Some users are admins, and have access to other forms with higher access. My ‘partner’ link executes the following code:
def partners_click(self, **event_args):
while not anvil.users.login_with_form():
pass
ret = anvil.server.call('check_user')
if ret == '<some secret value stored in admin users' records>':
open_form('admin form')
else:
open_form('basic_user_form')
Is this ‘secure’ since I’m using server-side code to discern a user and return his/her access level?