Exemplo n.º 1
0
Arquivo: login.py Projeto: Ictp/indico
 def _process( self ):
     av = None
     if self._userId:
         av = AvatarHolder().getById(self._userId)
     elif self._email:
         av_list = AvatarHolder().match({"email": self._email}, exact=1)
         if not av_list:
             raise NoReportError(_("We couldn't find any account with this email address"))
         av = av_list[0]
     if av:
         mail.send_login_info(av)
     self._redirect(urlHandlers.UHSignIn.getURL())
Exemplo n.º 2
0
 def _process( self ):
     av = None
     if self._userId != "":
         av = user.AvatarHolder().getById(self._userId)
     elif self._email != "":
         try:
             av = user.AvatarHolder().match({"email": self._email}, exact=1)[0]
         except IndexError:
             pass
     if av:
         mail.send_login_info(av, self._conf)
     self._redirect(urlHandlers.UHConfSignIn.getURL(self._conf))
Exemplo n.º 3
0
 def _process(self):
     av = None
     if self._userId != "":
         av = user.AvatarHolder().getById(self._userId)
     elif self._email != "":
         try:
             av = user.AvatarHolder().match({"email": self._email},
                                            exact=1)[0]
         except IndexError:
             pass
     if av:
         mail.send_login_info(av, self._conf)
     self._redirect(urlHandlers.UHConfSignIn.getURL(self._conf))