forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth: Use standalone models for invitations
- remove invite hacks from the social pipeline - rewritten invitation to send invites directly - invitations now work regardless registration open - project admins can only invite outside users with registration open - improved mail templates for invitations - user profile view of pending invitations - user has to accept the invitation to become a team member - add admin view of pending invitations - add copy button to copy full invitation URL in admin Fixes WeblateOrg#9261 Fixes WeblateOrg#9131 Fixes WeblateOrg#7412
- Loading branch information
Showing
33 changed files
with
815 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
weblate/accounts/migrations/0028_alter_auditlog_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright © Michal Čihař <michal@weblate.org> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
# Generated by Django 4.2.3 on 2023-07-31 10:01 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("accounts", "0027_alter_subscription_notification"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="auditlog", | ||
name="activity", | ||
field=models.CharField( | ||
choices=[ | ||
("accepted", "accepted"), | ||
("auth-connect", "auth-connect"), | ||
("auth-disconnect", "auth-disconnect"), | ||
("autocreated", "autocreated"), | ||
("blocked", "blocked"), | ||
("connect", "connect"), | ||
("email", "email"), | ||
("failed-auth", "failed-auth"), | ||
("full_name", "full_name"), | ||
("invited", "invited"), | ||
("locked", "locked"), | ||
("login", "login"), | ||
("login-new", "login-new"), | ||
("password", "password"), | ||
("register", "register"), | ||
("removed", "removed"), | ||
("reset", "reset"), | ||
("reset-request", "reset-request"), | ||
("sent-email", "sent-email"), | ||
("tos", "tos"), | ||
("trial", "trial"), | ||
("username", "username"), | ||
], | ||
db_index=True, | ||
max_length=20, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.