feat: mandatory password change on login + UI fixes
This commit is contained in:
@@ -11,6 +11,12 @@ mutation (
|
||||
$featurePageRatings: Boolean!
|
||||
$featurePageComments: Boolean!
|
||||
$featurePersonalWikis: Boolean!
|
||||
$securityIframe: Boolean!
|
||||
$securityReferrerPolicy: Boolean!
|
||||
$securityHSTS: Boolean!
|
||||
$securityHSTSDuration: Int!
|
||||
$securityCSP: Boolean!
|
||||
$securityCSPDirectives: String!
|
||||
) {
|
||||
site {
|
||||
updateConfig(
|
||||
@@ -25,7 +31,13 @@ mutation (
|
||||
logoIsSquare: $logoIsSquare,
|
||||
featurePageRatings: $featurePageRatings,
|
||||
featurePageComments: $featurePageComments,
|
||||
featurePersonalWikis: $featurePersonalWikis
|
||||
featurePersonalWikis: $featurePersonalWikis,
|
||||
securityIframe: $securityIframe,
|
||||
securityReferrerPolicy: $securityReferrerPolicy,
|
||||
securityHSTS: $securityHSTS,
|
||||
securityHSTSDuration: $securityHSTSDuration,
|
||||
securityCSP: $securityCSP,
|
||||
securityCSPDirectives: $securityCSPDirectives
|
||||
) {
|
||||
responseResult {
|
||||
succeeded
|
||||
|
@@ -13,6 +13,12 @@
|
||||
featurePageRatings
|
||||
featurePageComments
|
||||
featurePersonalWikis
|
||||
securityIframe
|
||||
securityReferrerPolicy
|
||||
securityHSTS
|
||||
securityHSTSDuration
|
||||
securityCSP
|
||||
securityCSPDirectives
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -10,6 +10,8 @@ query ($id: Int!) {
|
||||
jobTitle
|
||||
timezone
|
||||
isSystem
|
||||
isActive
|
||||
isVerified
|
||||
createdAt
|
||||
updatedAt
|
||||
groups {
|
||||
|
13
client/graph/login/login-mutation-changepassword.gql
Normal file
13
client/graph/login/login-mutation-changepassword.gql
Normal file
@@ -0,0 +1,13 @@
|
||||
mutation($continuationToken: String!, $newPassword: String!) {
|
||||
authentication {
|
||||
loginChangePassword(continuationToken: $continuationToken, newPassword: $newPassword) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
jwt
|
||||
}
|
||||
}
|
||||
}
|
@@ -8,8 +8,9 @@ mutation($username: String!, $password: String!, $strategy: String!) {
|
||||
message
|
||||
}
|
||||
jwt
|
||||
tfaRequired
|
||||
tfaLoginToken
|
||||
mustChangePwd
|
||||
mustProvideTFA
|
||||
continuationToken
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,13 @@
|
||||
mutation($loginToken: String!, $securityCode: String!) {
|
||||
mutation($continuationToken: String!, $securityCode: String!) {
|
||||
authentication {
|
||||
loginTFA(loginToken: $loginToken, securityCode: $securityCode) {
|
||||
loginTFA(continuationToken: $continuationToken, securityCode: $securityCode) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
jwt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user