Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
max committed May 2, 2020
1 parent ddaec79 commit 194fdb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cps/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ def load_user_from_request(request):
return user
else:
content = ub.User()
content.nickname = user
content.nickname = rp_header_username
password = generate_random_password()
content.password = generate_password_hash(password)
content.email = user + '@email.com'
content.email = rp_header_username + '@email.com'
content.role = config.config_default_role
content.sidebar_view = config.config_default_show
content.allowed_tags = config.config_allowed_tags
Expand All @@ -165,7 +165,7 @@ def load_user_from_request(request):
ub.session.commit()
return _fetch_user_by_name(rp_header_username)
except Exception as e:
log.warning("Failed to create Organizr user: %s - %s", user, e)
log.warning("Failed to create Organizr user: %s - %s", rp_header_username, e)
ub.session.rollback()
showtext['text'] = _(u'Failed to Create User based on auth headers')

Expand Down

0 comments on commit 194fdb4

Please sign in to comment.