Commit 4807405e authored by Noe Nieto's avatar Noe Nieto 💬
Browse files

Configure default last name; Purism/LibremOne/task#395

parent d7310ed9
......@@ -74,3 +74,6 @@ DEFAULT_FROM_EMAIL = "Do not replay <noreply@example.com>"
# This is the link to the subscribe page, used in different parts of the middleware
SUBSCRIBE_HREF = /#bundle
# This is the default last name for users created here
DEFAUL_USER_LASTNAME = @example.com
......@@ -289,3 +289,4 @@ EMAIL_USE_SSL = config('EMAIL_USE_SSL', False, cast=bool)
# This is the link to the subscribe page, used in different parts of the middleware
SUBSCRIBE_HREF = config('SUBSCRIBE_HREF')
DEFAUL_USER_LASTNAME = config('DEFAUL_USER_LASTNAME', SITE_TITLE)
......@@ -190,7 +190,7 @@ class User(AbstractUser):
data = {
"email": self.get_identity(),
"first_name": self.username,
"last_name": settings.SITE_TITLE,
"last_name": settings.DEFAUL_USER_LASTNAME,
"username": self.get_identity(),
"password": make_password(None), # unusable password
"billing": {"email": self.email}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment