Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to re-send account creation emails. #2585

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tabbycat/users/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def get_users(self, email):
'username': email.split("@")[0],
},
)
user.membership_set.create(group=self.cleaned_data['role'])
if created is True:
teymour-aldridge marked this conversation as resolved.
Show resolved Hide resolved
user.membership_set.create(group=self.cleaned_data['role'])
return [user]

def save(self, *args, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions tabbycat/users/templates/invite_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{% include 'components/form-main.html' %}

{% trans "Invite User" context "button" as title %}
{% trans "Note: if you submit this multiple times, multiple invite emails will be sent." as subtitle %}
{% include "components/form-submit.html" %}
</div>
</form>
Expand Down