"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "taiga/auth/services.py" between
taiga-back-5.5.4.tar.gz and taiga-back-5.5.5.tar.gz

About: Taiga (Backend) is an agile project management web application with scrum in mind. Built on top of Django and AngularJS (Backend).

services.py  (taiga-back-5.5.4):services.py  (taiga-back-5.5.5)
skipping to change at line 155 skipping to change at line 155
Given a inviation token, try register new user matching Given a inviation token, try register new user matching
the invitation token. the invitation token.
""" """
is_registered, reason = is_user_already_registered(username=username, email= email) is_registered, reason = is_user_already_registered(username=username, email= email)
if is_registered: if is_registered:
raise exc.WrongArguments(reason) raise exc.WrongArguments(reason)
user_model = get_user_model() user_model = get_user_model()
user = user_model(username=username, user = user_model(username=username,
email=email, email=email,
full_name=full_name) full_name=full_name,
email_token=str(uuid.uuid4()),
new_email=email,
verified_email=False,
read_new_terms=True)
user.set_password(password) user.set_password(password)
try: try:
user.save() user.save()
except IntegrityError: except IntegrityError:
raise exc.WrongArguments(_("Error while creating new user.")) raise exc.WrongArguments(_("Error while creating new user."))
membership = get_membership_by_token(token) membership = get_membership_by_token(token)
membership.user = user membership.user = user
membership.save(update_fields=["user"]) membership.save(update_fields=["user"])
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)