Revision 7368111c snf-astakos-app/astakos/im/activation_backends.py
b/snf-astakos-app/astakos/im/activation_backends.py | ||
---|---|---|
108 | 108 |
): |
109 | 109 |
""" |
110 | 110 |
If the user is already active returns immediately. |
111 |
If the user is not active and there is another account associated with |
|
112 |
the specific email, it sends an informative email to the user whether |
|
113 |
wants to switch to this account. |
|
114 | 111 |
If the user is preaccepted and the email is verified, the account is |
115 | 112 |
activated automatically. Otherwise, if the email is not verified, |
116 | 113 |
it sends a verification email to the user. |
... | ... | |
189 | 186 |
|
190 | 187 |
def _is_preaccepted(self, user): |
191 | 188 |
""" |
192 |
If there is a valid, not-consumed invitation code for the specific user
|
|
193 |
returns True else returns False. |
|
189 |
Extends _is_preaccepted and if there is a valid, not-consumed invitation
|
|
190 |
code for the specific user returns True else returns False.
|
|
194 | 191 |
""" |
195 | 192 |
if super(InvitationsBackend, self)._is_preaccepted(user): |
196 | 193 |
return True |
Also available in: Unified diff