diff --git a/src/js/yunohost/controllers/users.js b/src/js/yunohost/controllers/users.js index fe70d9d7..803096a2 100644 --- a/src/js/yunohost/controllers/users.js +++ b/src/js/yunohost/controllers/users.js @@ -204,8 +204,8 @@ c.view('user/user_create', data, function(){ var usernameField = $('#username'); usernameField.on('input', function(){ - var emailField = $('#email'); - emailField.val(usernameField.val()); + var emailLeft = $('#email-left'); + emailLeft.html(usernameField.val()); }); }); }); diff --git a/src/locales/en.json b/src/locales/en.json index 33c9f225..240184a8 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -104,7 +104,6 @@ "domain_visit": "Visit", "domain_visit_url": "Visit %s", "domains": "Domains", - "email_info": "The main email adress must start with the username, nevertheless you can add additional email adresses (aliases) after creating the user.", "enable": "Enable", "enabled": "Enabled", "error_modify_something": "You should modify something", @@ -270,6 +269,7 @@ "system_upgrade_all_applications_btn": "Upgrade all applications", "system_upgrade_all_packages_btn": "Upgrade all packages", "tcp": "TCP", + "tip_about_user_email": "Users are created with an associated email address (and XMPP account) with the format username@domain.tld. Additional email aliases and email forwards can later be added by the admin and the user.", "tools": "Tools", "tools_adminpw": "Change administration password", "tools_adminpw_confirm_placeholder": "Confirm the new password", diff --git a/src/views/user/user_create.ms b/src/views/user/user_create.ms index 6334e42d..ff7d34c3 100644 --- a/src/views/user/user_create.ms +++ b/src/views/user/user_create.ms @@ -28,11 +28,26 @@
johndoe