feat: refactor reset password api and forgetPage.js (#1601)

This commit is contained in:
Yaodong Yu
2023-03-01 15:57:42 +08:00
committed by GitHub
parent b38f2218a3
commit e21087aa50
9 changed files with 539 additions and 340 deletions

View File

@ -218,6 +218,30 @@ paths:
description: The Response object
schema:
$ref: '#/definitions/controllers.Response'
/api/add-session:
post:
tags:
- Session API
description: Add session for one user in one application. If there are other existing sessions, join the session into the list.
operationId: ApiController.AddSession
parameters:
- in: query
name: id
description: The id(organization/application/user) of session
required: true
type: string
- in: query
name: sessionId
description: sessionId to be added
required: true
type: string
responses:
"200":
description: The Response object
schema:
type: array
items:
type: string
/api/add-syncer:
post:
tags:
@ -574,12 +598,12 @@ paths:
post:
tags:
- Session API
description: Delete session by userId
description: Delete session for one user in one application.
operationId: ApiController.DeleteSession
parameters:
- in: query
name: id
description: The id ( owner/name )(owner/name) of user.
description: The id(organization/application/user) of session
required: true
type: string
responses:
@ -799,7 +823,7 @@ paths:
schema:
$ref: '#/definitions/Response'
/api/get-email-and-phone:
post:
get:
tags:
- User API
description: get email and phone by username
@ -847,7 +871,7 @@ paths:
items:
$ref: '#/definitions/object.User'
/api/get-ldap:
post:
get:
tags:
- Account API
operationId: ApiController.GetLdap
@ -857,7 +881,7 @@ paths:
- Account API
operationId: ApiController.GetLdapser
/api/get-ldaps:
post:
get:
tags:
- Account API
operationId: ApiController.GetLdaps
@ -1224,11 +1248,30 @@ paths:
type: array
items:
$ref: '#/definitions/object.Role'
/api/get-session:
get:
tags:
- Session API
description: Get session for one user in one application.
operationId: ApiController.GetSingleSession
parameters:
- in: query
name: id
description: The id(organization/application/user) of session
required: true
type: string
responses:
"200":
description: The Response object
schema:
type: array
items:
type: string
/api/get-sessions:
get:
tags:
- Session API
description: Get organization user sessions
description: Get organization user sessions.
operationId: ApiController.GetSessions
parameters:
- in: query
@ -1535,6 +1578,30 @@ paths:
description: The Response object
schema:
$ref: '#/definitions/controllers.Response'
/api/is-session-duplicated:
get:
tags:
- Session API
description: Check if there are other different sessions for one user in one application.
operationId: ApiController.IsSessionDuplicated
parameters:
- in: query
name: id
description: The id(organization/application/user) of session
required: true
type: string
- in: query
name: sessionId
description: sessionId to be checked
required: true
type: string
responses:
"200":
description: The Response object
schema:
type: array
items:
type: string
/api/login:
post:
tags:
@ -2110,6 +2177,25 @@ paths:
description: The Response object
schema:
$ref: '#/definitions/controllers.Response'
/api/update-session:
post:
tags:
- Session API
description: Update session for one user in one application.
operationId: ApiController.UpdateSession
parameters:
- in: query
name: id
description: The id(organization/application/user) of session
required: true
type: string
responses:
"200":
description: The Response object
schema:
type: array
items:
type: string
/api/update-syncer:
post:
tags:
@ -2293,10 +2379,10 @@ paths:
schema:
$ref: '#/definitions/Response'
definitions:
2346.0xc0001ce990.false:
2346.0xc000278ab0.false:
title: "false"
type: object
2381.0xc0001ce9c0.false:
2381.0xc000278ae0.false:
title: "false"
type: object
Response:
@ -2336,6 +2422,8 @@ definitions:
type: string
code:
type: string
countryCode:
type: string
email:
type: string
emailCode:
@ -2358,8 +2446,6 @@ definitions:
type: string
phoneCode:
type: string
phonePrefix:
type: string
provider:
type: string
redirectUri:
@ -2383,9 +2469,9 @@ definitions:
type: object
properties:
data:
$ref: '#/definitions/2346.0xc0001ce990.false'
$ref: '#/definitions/2346.0xc000278ab0.false'
data2:
$ref: '#/definitions/2381.0xc0001ce9c0.false'
$ref: '#/definitions/2381.0xc000278ae0.false'
msg:
type: string
name:
@ -2689,6 +2775,10 @@ definitions:
type: array
items:
$ref: '#/definitions/object.AccountItem'
countryCodes:
type: array
items:
type: string
createdTime:
type: string
defaultApplication:
@ -2720,8 +2810,6 @@ definitions:
type: string
passwordType:
type: string
phonePrefix:
type: string
tags:
type: array
items:
@ -3237,6 +3325,8 @@ definitions:
type: string
cloudfoundry:
type: string
countryCode:
type: string
createdIp:
type: string
createdTime: