Is there a 'login as' function that exists in Wappler as in Bubble?

Use case: Platform Admin, logging in as the user to review their account, if they are having issues etc.

Bubble makes this super easy, you simply view the live DB and click log in as and you will log in as that user.

Does this exist in some format in Wappler? Or any guides / docs for this? (I’ve searched but cannot find anything specific to this use case).

No, that is not a feature in Wappler. You would have to know the user credentials. In my opinion, being able to log into a user account without the credentials is a big security issue.

I think it’s just a case of setting the session variable ($_SESSION[‘security1Id’] for example) to the user you want to be logged in as. So should be fairly easy. But, you may need to add another session to distinguish between you being logged in as an admin and then being effectively logged in as the user. Or you would have to log out as the user and then log back in again as the admin when you’re done.

Ok, great, thank you - I’ll explore this suggestion. Much appreciated!

1 Like