예제 #1
0
 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('/')
예제 #2
0
 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('/')
예제 #3
0
 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('/')
예제 #4
0
 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('/')
예제 #5
0
    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)
예제 #6
0
    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)