access update

feature/fix_generate_pass
Andrey 8 years ago
parent d836d74c5e
commit 683e95de2d
  1. 4
      access/models.py

@ -104,7 +104,7 @@ class CustomUserManager(BaseUserManager):
for group in role_list:
user.groups.add(Group.objects.get(name=group))
if is_send:
if is_send and password:
invite = Invite.objects.create(owner=user,
hash=''.join(random.choice(string.ascii_letters) for x in range(15)))
body = {
@ -113,7 +113,7 @@ class CustomUserManager(BaseUserManager):
Вы были успешны зарегистрированны на портале go.skillbox.ru
ваш пароль %s
для подтверждения регистрации перейдите по ссылке
https://go.skillbox.ru/api/v1/users/registration/?hash=%s''' %(user.password, invite.hash),
https://go.skillbox.ru/api/v1/users/registration/?hash=%s''' %(password, invite.hash),
"from_email": 'robo@skillbox.ru',
"recipient_list": [user.email],
}

Loading…
Cancel
Save