This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 7544d0da31fa95e1d2440cdd291972664bbd9e39 Author: Kevin Morin <morin@codelutin.com> Date: Fri Oct 27 10:57:17 2017 +0200 autocomplete off sur la répétition du mot de passe --- .../src/main/web/tag/UserProfile.tag.html | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/UserProfile.tag.html b/pollen-ui-riot-js/src/main/web/tag/UserProfile.tag.html index b347984a..bf1f75a7 100644 --- a/pollen-ui-riot-js/src/main/web/tag/UserProfile.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/UserProfile.tag.html @@ -107,7 +107,8 @@ require("./components/Avatar.tag.html"); onblur="{checkPassword}" onkeypress="{clearPasswordError}" required - maxlength="255"> + maxlength="255" + autocomplete="off"> <div if="{errors.repeatPassword}" class="c-hint--static c-hint--error"> {errors.repeatPassword} @@ -214,13 +215,12 @@ require("./components/Avatar.tag.html"); this.submitIdentity = e => { e.preventDefault(); e.stopPropagation(); - let previousName = this.user.name; this.user.name = this.refs.name.value; userService.saveUser(this.user).then(() => { this.session.updateUser(); this.bus.trigger("message", new Message(this._l("updatedIdentity"), "success")); - }).catch((e) => { - this.errors.name = e.name; + }).catch((err) => { + this.errors.name = err.name; this.update(); }); }; @@ -263,7 +263,7 @@ require("./components/Avatar.tag.html"); } }; - this.linkProvider = (provider) => (e) => { + this.linkProvider = (provider) => () => { let redirection = encodeURIComponent(location.origin + location.pathname + "?loginProvider=" + provider + "&action=link"); this.authService.getLoginProviderUrl(provider, redirection).then(result => { @@ -271,19 +271,19 @@ require("./components/Avatar.tag.html"); }); }; - this.unlinkProvider = (credentialId, index) => (e) => { + this.unlinkProvider = (credentialId, index) => () => { this.confirm(this.__.unlinkProviderMessage).then((confirm) => { if (!confirm) { return Promise.reject(); } return userService.unlinkProvider(credentialId); - }).then(result => { + }).then(() => { this.user.credentials.splice(index, 1); this.update(); }); }; - this.getProviderAvatar = (provider) => (e) => { + this.getProviderAvatar = (provider) => () => { let redirection = encodeURIComponent(location.origin + location.pathname + "?loginProvider=" + provider + "&action=avatar"); this.authService.getLoginProviderUrl(provider, redirection).then(result => { @@ -291,20 +291,20 @@ require("./components/Avatar.tag.html"); }); }; - this.deleteAvatar = e => { + this.deleteAvatar = () => { this.confirm(this.__.deleteAvatarMessage).then((confirm) => { if (!confirm) { return Promise.reject(); } return userService.deleteAvatar(); - }).then(result => { + }).then(() => { this.user.avatar = null; this.session.updateUser(); this.update(); }); }; - this.uploadAvatar = e => { + this.uploadAvatar = () => { userService.setUserAvatar(this.refs.avatar.files[0]).then((result) => { this.user.avatar = result.id; this.refs.avatar.value = null; @@ -334,7 +334,7 @@ require("./components/Avatar.tag.html"); } }; - this.deleteAccount = e => { + this.deleteAccount = () => { this.confirm(this.__.deleteUserMessage, null, null, 10).then((confirm) => { if (confirm) { userService.deleteUser(this.user.id).then(() => { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.