34
Views
1
Comments
Solved
What happened in the server upon successful login?
Application Type
Traditional Web, Mobile, Reactive
Service Studio Version
11.54.56 (Build 63232)

I am trying to track what happens whenever a user logs in to a mobile app. 

  1. In Login screen, the Login client action triggers DoLogin(Username, Password) server action.  
  2. This triggers User_Login(Username, Password, RememberLogin)  server action in Users module.
  3. This triggers User_LoginInternal(Username, Password, DbPassword, RememberLogin, UserId, TenantId) server action in Users module.
  4. This triggers LoginPassword(UserId, Password, Persistent) server action in Users Systems.

Up to this point, I wasn't able to conclude what LoginPassword did to the UserId. Does it implicit stored UserId into the session at the server side?

2024-09-08 11-13-40
Nuno Damaso
 
MVP
Solution

Hi Kaiming, 

To answer your question directly, IF successful (user/pass match), your session variables will be set to the values of UserId and Username, so yes.


Here's the docs if you want to check it out: https://success.outsystems.com/documentation/11/reference/outsystems_apis/system_actions/#loginpassword

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.