Registration form with only email + password

I want a registration form with only email + password. I think that embed email automatically in the username field. So, for the eash user, I will have the following:

username: example@example.com

password: mypassword

email: example@example.com

Of course, the email address + password will be used during the login process.

Is this a good solution to have 2 fields with the same value? Or is there a more complicated solution?

Thank:)

+3
source share
1 answer

, username, r'^\w+$' ( no @ ., ). , 30 username, .

, - , djangosnippets.

, - . , -, pokery jiggery, contrib.admin.

+2

Source: https://habr.com/ru/post/1728430/


All Articles