feat: mandatory password change on login + UI fixes
This commit is contained in:
@@ -32,9 +32,14 @@ type AuthenticationMutation {
|
||||
): AuthenticationLoginResponse @rateLimit(limit: 5, duration: 60)
|
||||
|
||||
loginTFA(
|
||||
loginToken: String!
|
||||
continuationToken: String!
|
||||
securityCode: String!
|
||||
): DefaultResponse @rateLimit(limit: 5, duration: 60)
|
||||
): AuthenticationLoginResponse @rateLimit(limit: 5, duration: 60)
|
||||
|
||||
loginChangePassword(
|
||||
continuationToken: String!
|
||||
newPassword: String!
|
||||
): AuthenticationLoginResponse @rateLimit(limit: 5, duration: 60)
|
||||
|
||||
register(
|
||||
email: String!
|
||||
@@ -76,8 +81,9 @@ type AuthenticationStrategy {
|
||||
type AuthenticationLoginResponse {
|
||||
responseResult: ResponseStatus
|
||||
jwt: String
|
||||
tfaRequired: Boolean
|
||||
tfaLoginToken: String
|
||||
mustChangePwd: Boolean
|
||||
mustProvideTFA: Boolean
|
||||
continuationToken: String
|
||||
}
|
||||
|
||||
type AuthenticationRegisterResponse {
|
||||
|
@@ -36,6 +36,12 @@ type SiteMutation {
|
||||
featurePageRatings: Boolean!
|
||||
featurePageComments: Boolean!
|
||||
featurePersonalWikis: Boolean!
|
||||
securityIframe: Boolean!
|
||||
securityReferrerPolicy: Boolean!
|
||||
securityHSTS: Boolean!
|
||||
securityHSTSDuration: Int!
|
||||
securityCSP: Boolean!
|
||||
securityCSPDirectives: String!
|
||||
): DefaultResponse @auth(requires: ["manage:system"])
|
||||
}
|
||||
|
||||
@@ -56,4 +62,10 @@ type SiteConfig {
|
||||
featurePageRatings: Boolean!
|
||||
featurePageComments: Boolean!
|
||||
featurePersonalWikis: Boolean!
|
||||
securityIframe: Boolean!
|
||||
securityReferrerPolicy: Boolean!
|
||||
securityHSTS: Boolean!
|
||||
securityHSTSDuration: Int!
|
||||
securityCSP: Boolean!
|
||||
securityCSPDirectives: String!
|
||||
}
|
||||
|
@@ -89,6 +89,8 @@ type User {
|
||||
providerKey: String!
|
||||
providerId: String
|
||||
isSystem: Boolean!
|
||||
isActive: Boolean!
|
||||
isVerified: Boolean!
|
||||
location: String!
|
||||
jobTitle: String!
|
||||
timezone: String!
|
||||
|
Reference in New Issue
Block a user