Changeset 7ffd1d4


Ignore:
Timestamp:
Mar 18, 2014, 3:00:57 AM (12 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, stable, stage
Children:
8442dd7
Parents:
f612be5
git-author:
Alex Dehnert <adehnert@…> (03/18/14 03:00:57)
git-committer:
Alex Dehnert <adehnert@…> (03/18/14 03:00:57)
Message:

Allow specifying @mit.edu addresses (ASA-#219)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    rf612be5 r7ffd1d4  
    243243        if key in request.POST and request.POST[key] != "":
    244244            username = request.POST[key]
     245
     246            local, at, domain = username.partition('@')
     247            if at and domain.lower() == 'mit.edu':
     248                msgs.append('In general, you should specify just the Athena username (for example, %s), not the whole email address (like %s).' % (local, username))
     249                username = local
     250
    245251            try:
    246252                moira_accounts[username] = groups.models.AthenaMoiraAccount.active_accounts.get(username=username)
Note: See TracChangeset for help on using the changeset viewer.