Class: LoginDataController
api-login/auth/login-data.controller.LoginDataController
Constructors
constructor
• new LoginDataController(loginDataSerive, backendUserService, strategiesService)
Parameters
| Name | Type |
|---|---|
loginDataSerive | UserLoginDataService |
backendUserService | BackendUserService |
strategiesService | StrategiesService |
Defined in
gropius-login-service/backend/src/api-login/auth/login-data.controller.ts:26
Properties
backendUserService
• Private Readonly backendUserService: BackendUserService
Defined in
gropius-login-service/backend/src/api-login/auth/login-data.controller.ts:28
loginDataSerive
• Private Readonly loginDataSerive: UserLoginDataService
Defined in
gropius-login-service/backend/src/api-login/auth/login-data.controller.ts:27
strategiesService
• Private Readonly strategiesService: StrategiesService
Defined in
gropius-login-service/backend/src/api-login/auth/login-data.controller.ts:29
Methods
getLoginData
▸ getLoginData(id, res): Promise<UserLoginDataResponse>
Gets the list of all login data of a single user specified by id.
Needs admin permission for any user other than the one sending the request (equivalen to self query).
Parameters
| Name | Type | Description |
|---|---|---|
id | string | The uuid string of the existing user to get the loginData for or 'self' |
res | Response<any, Record<string, any>> | The response object containing the request state |
Returns
Promise<UserLoginDataResponse>
If user exits, login data for the user with the specified id
Defined in
gropius-login-service/backend/src/api-login/auth/login-data.controller.ts:56