def get(self, id, ck): user_id, cid = verifyed(id, ck, delete=False) if user_id and CID_VERIFY_LOGIN_MAIL == cid: user = self.current_user user_mail_active_by_user(user) self.redirect('%s/i/account/mail/success'%user.link) else: self.redirect('/')
def handler_verify(self, id, ck, delete=False): user_id, cid = verifyed(id, ck, delete) if user_id and self.cid == cid: session = user_session(user_id) self.set_cookie('S', session) return user_id else: self.redirect('/')
def get(self, id, ck): user_id, cid = verifyed(id, ck, delete=False) if user_id and CID_VERIFY_LOGIN_MAIL == cid: user = self.current_user user_mail_active_by_user(user) self.redirect('%s/i/account/mail/success' % user.link) else: self.redirect('/')
def get(self, id, ck): user_id, cid = verifyed(id, ck, delete=False) if user_id and CID_VERIFY_COM_HR == cid and zsite_member_can_admin(user_id, self.current_user_id): job_mail_verifyed(user_id) link = _link(user_id) if _job_pid_default_by_com_id(user_id): path = '%s/job/admin/mail' else: path = '%s/job/new' path = path%link else: path = '/' self.redirect(path)
def get(self, id, ck): user_id, cid = verifyed(id, ck, delete=False) if user_id and CID_VERIFY_COM_HR == cid and zsite_member_can_admin( user_id, self.current_user_id): job_mail_verifyed(user_id) link = _link(user_id) if _job_pid_default_by_com_id(user_id): path = '%s/job/admin/mail' else: path = '%s/job/new' path = path % link else: path = '/' self.redirect(path)