use email address as end-user username

Hi,

Can you please make it so that we can use email addresses as username for end-users? When I try and add a user like john@smith.co.za it doesn't take it since the "@" isn't an allowed symbol to use.

I think using email addresses would be ideal since it's totally unique.

Status: 
Closed (fixed)

Comments

Howdy, To use email addresses for usernames, you can go into System Settings -> Server Templates -> Default -> Mail for Domain, and set "Format for usernames that include domain" to "user@domain".

After that, users you add to the system would be in email address format.

-Eric

Eric, which system are you referring to? Those options are not available in CloudMin

Oh, you are referring the "system owner" accounts in Cloudmin ..

I will fix it in the next release to allow @ in the username.

Hi Jamie,

Yes, I'm referring to the "system owners". I think it could also be useful for their "lost password retrieval" if they only need to supply a password?

Currently there is no password reset feature for Cloudmin, but if there was it would be drive by the email address / username, not the password ..

My bad, I didn't even notice that there's no password retrieval option for system owners.

Could you add such a feature as well?

And maybe an option, when I add a new system owner, that he get's a welcome email (with an editable email template) from CloudMin giving him his login details and some instructions on how to login, and what todo with once logged in. i.e. something like:

John, your account was setup on our CloudMin server with the following details: URL: https://ourserver username: john@smith.blah password: johnspassword

Once you login to CloudMin you can do any of the following: Reboot your VPS Rebuild the VPS from a list of templates Add a new VPs See bandwidth and other statistics graphs change the resouce limits

And I think it might be a good idea to make those options (i.e. "Reboot", "Rebuild", "Add new", Bandwidth", etc) linkable to the relevant action on the CloudMin server for quick access.

For example, many people keep thise emails, but if the email doesn't have much info and they need to phone / email us to find out what it was for, then they'll forget about it. 2 years later he decides to rebuild his VPS but can't remember how / where / if he can. If the info was in any email then it's easier for him to get the info.

Just a thought?

Those are good ideas, and they mirror what is available in Virtualmin. I will look into them ..

Howdy, To use email addresses for usernames, you can go into System Settings -> Server Templates -> Default -> Mail for Domain, and set "Format for usernames that include domain" to "user@domain".

How can I do this for an existing virtualmin domain? I.e. have setup the templates but want to have the format changed to user@domain for email users to be added. Right now it's stuck at the user_domain type of format....

While I don't believe it's possible to do this from within the Virtualmin GUI, you may be able to do that from the command line.

After changing the "Format for Usernames" option in the Server Templates, try running this command as root from the command line:

virtualmin modify-user --domain domain.tld --user username --newuser newusername

I believe that --newuser option will use the new username format you've chosen when renaming the user, but you'll need to give that a try to be sure :-)

Interestingly enough, I changed the default template as stated above. Then I went into the template that is used by that server and changed it there.

Magically, new users become user@domain!!!! Perfect! So just deleted the others I created and now all are working as I like...

Seems like this setting should be available in webmin somewhere or in the server configuration so the admin of a site can set it to behave how they want versus what I think!

Thanks for the quick response and I'll hold on to the command line for future adjustments.

BTW, Cloudmin 4.8 will include a password recovery option for system owners

Automatically closed -- issue fixed for 2 weeks with no activity.