-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notify new user if their email domain matches existing Perma partner(…
…s) (#3596) * Initial pass at user email/registrar domain match function * Implement basic suggested registrars test and fix existing tests * Use SQL regex pattern to check hostname match * Support multiple suggested registrars; fix mutable default arg bug * Fix suggest_registrars so it ignores path after base domain
- Loading branch information
Showing
3 changed files
with
68 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
In order to complete your account activation, please confirm your email address and set a password. It’s as simple as clicking the link below. The link will be valid for the next {% widthratio activation_expires 3600 1 %} hours. | ||
|
||
{{ activation_route }} | ||
{{ activation_route }} | ||
|
||
{% if suggested_registrars %}Note: We’ve also found {% if suggested_registrars|length == 1 %}a Perma.cc partner institution{% else %}some Perma.cc partner institutions{% endif %} with whom you might be affiliated. You may be able to request a sponsored account by contacting them: | ||
{% for suggested_registrar in suggested_registrars %} | ||
- {{ suggested_registrar.name }}: {{ suggested_registrar.email }}{% endfor %}{% endif %} | ||
|
||
Thanks, | ||
The Perma.cc Team |
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