diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2020-09-02 05:16:19 +0200 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2020-09-02 15:22:16 +0200 |
commit | 802b2c541c9364e8e6bceeb57c7e0556f1b2d442 (patch) | |
tree | 406e65ec8801a37f337eada23f244b10cea7f4af /client | |
parent | 026136988f61e79c67fcde1bf941b57491931823 (diff) | |
download | wekan-802b2c541c9364e8e6bceeb57c7e0556f1b2d442.tar.gz wekan-802b2c541c9364e8e6bceeb57c7e0556f1b2d442.tar.bz2 wekan-802b2c541c9364e8e6bceeb57c7e0556f1b2d442.zip |
LDAP: Hide email
The user cannot change the email and should not see the internal
accounts.spline.de address.
Diffstat (limited to 'client')
-rw-r--r-- | client/components/users/userHeader.jade | 8 | ||||
-rw-r--r-- | client/components/users/userHeader.js | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/client/components/users/userHeader.jade b/client/components/users/userHeader.jade index d0adf29d..29859e01 100644 --- a/client/components/users/userHeader.jade +++ b/client/components/users/userHeader.jade @@ -70,14 +70,6 @@ template(name="editProfilePopup") label | {{_ 'initials'}} input.js-profile-initials(type="text" value=profile.initials) - label - | {{_ 'email'}} - span.error.hide.email-taken - | {{_ 'error-email-taken'}} - if allowEmailChange - input.js-profile-email(type="email" value="{{emails.[0].address}}") - else - input.js-profile-email(type="email" value="{{emails.[0].address}}" readonly) div.buttonsContainer input.primary.wide(type="submit" value="{{_ 'save'}}") if allowUserDelete diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index b7bb284e..f85afc21 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -79,7 +79,6 @@ Template.editProfilePopup.events({ const fullname = templateInstance.find('.js-profile-fullname').value.trim(); const username = templateInstance.find('.js-profile-username').value.trim(); const initials = templateInstance.find('.js-profile-initials').value.trim(); - const email = templateInstance.find('.js-profile-email').value.trim(); let isChangeUserName = false; let isChangeEmail = false; Users.update(Meteor.userId(), { @@ -89,8 +88,6 @@ Template.editProfilePopup.events({ }, }); isChangeUserName = username !== Meteor.user().username; - isChangeEmail = - email.toLowerCase() !== Meteor.user().emails[0].address.toLowerCase(); if (isChangeUserName && isChangeEmail) { Meteor.call( 'setUsernameAndEmail', |