equal
deleted
inserted
replaced
575 * if a User has this Gooogle Account in their formerAccounts list |
575 * if a User has this Gooogle Account in their formerAccounts list |
576 """ |
576 """ |
577 |
577 |
578 self.checkIsLoggedIn() |
578 self.checkIsLoggedIn() |
579 |
579 |
580 if not self.user and not user_logic.isFormerAccount(self.id): |
580 fields = {'account': self.id} |
|
581 user_entity = user_logic.getForFields(fields, unique=True) |
|
582 |
|
583 if not user_entity and not user_logic.isFormerAccount(self.id): |
581 # this account has not been used yet |
584 # this account has not been used yet |
582 return |
585 return |
583 |
586 |
584 message_fmt = DEF_USER_ACCOUNT_INVALID_MSG_FMT % { |
587 message_fmt = DEF_USER_ACCOUNT_INVALID_MSG_FMT % { |
585 'email' : self.id.email() |
588 'email' : self.id.email() |