Merge pull request #3816 from overleaf/jpa-fix-settings

[misc] fix the pre-filling of the users email in settings for Server Pro

GitOrigin-RevId: 7732c362a6ca4a16b8c89f3430fceebaaf27dee7
This commit is contained in:
Jakob Ackermann
2021-03-26 10:53:01 +01:00
committed by Copybot
parent d05f262615
commit fc15525fb3

View File

@@ -17,7 +17,11 @@ App.directive('asyncForm', ($http, validateCaptcha, validateCaptchaV3) => ({
scope[attrs.name].response = response = {}
scope[attrs.name].inflight = false
scope.email = scope.email || ctrl.getEmailFromQuery() || attrs.newEmail
scope.email =
scope.email ||
scope.usersEmail ||
ctrl.getEmailFromQuery() ||
attrs.newEmail
const validateCaptchaIfEnabled = function(callback) {
if (attrs.captchaActionName) {