diff --git a/userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy b/userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy index bbf21ec8..3d2d9688 100644 --- a/userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy +++ b/userdetails-cognito/src/main/groovy/au/org/ala/userdetails/CognitoUserService.groovy @@ -41,6 +41,7 @@ import com.amazonaws.services.cognitoidp.model.SchemaAttributeType import com.amazonaws.services.cognitoidp.model.SoftwareTokenMfaSettingsType import com.amazonaws.services.cognitoidp.model.UserNotFoundException import com.amazonaws.services.cognitoidp.model.UserType +import com.amazonaws.services.cognitoidp.model.VerifyUserAttributeRequest import com.nimbusds.oauth2.sdk.token.AccessToken import com.amazonaws.services.cognitoidp.model.VerifySoftwareTokenRequest import grails.converters.JSON @@ -875,6 +876,21 @@ class CognitoUserService implements IUserServiceAPI Docs Portal. application.q13=I'm encountering issues. How can I contact the ALA? -application.a13=For any questions or technical assistance, please contact our dedicated support team at support@ala.org.au. \ No newline at end of file +application.a13=For any questions or technical assistance, please contact our dedicated support team at support@ala.org.au. +update.email=Update your email +update.email.desc=Please enter your new email to update the email. The new email will receive a code to which needs to be submitted to verify the new email address. \ No newline at end of file diff --git a/userdetails-plugin/grails-app/views/registration/createAccount.gsp b/userdetails-plugin/grails-app/views/registration/createAccount.gsp index b76de84d..875f952b 100644 --- a/userdetails-plugin/grails-app/views/registration/createAccount.gsp +++ b/userdetails-plugin/grails-app/views/registration/createAccount.gsp @@ -159,6 +159,21 @@ + +

+

+ +

+
+ + + + +
+
@@ -179,8 +194,7 @@ data-errormessage-value-missing="${message(code:'create.account.email.is.required')}" />
- %{--TODO: Should come up with a way to verify the new email address before changing it--}% - +
diff --git a/userdetails-plugin/src/main/groovy/au/org/ala/userdetails/IUserService.groovy b/userdetails-plugin/src/main/groovy/au/org/ala/userdetails/IUserService.groovy index b355ed72..99951159 100644 --- a/userdetails-plugin/src/main/groovy/au/org/ala/userdetails/IUserService.groovy +++ b/userdetails-plugin/src/main/groovy/au/org/ala/userdetails/IUserService.groovy @@ -242,6 +242,8 @@ interface IUserService, P extends IUserP boolean verifyUserCode(String userCode) + boolean verifyUserAttribute(String attribute, String code) + void enableMfa(String userId, boolean enable) // *********** Property related services *************