#!/usr/bin/env python

from vlib import conf
from vweb.html import *

from base import Base

class Verify(Base):

    @property
    def name(self): return 'verify'

    def __init__(self):
        Base.__init__(self)
        #self.style_sheets.extend(['css/home.css'])

        self.conf = conf.getInstance()
        self.verified_user = None
        self.require_login = False

    def process(self):
        Base.process(self)
        if 't' in self.form:
            token = self.form['t'].value
            self.verified_user = self.emails.verify_email_token(token)
            if self.verified_user:
                self.emails.send_welcome_email(self.verified_user)
                                           
    def _getBody(self):
        if self.verified_user:
            return open('verification_success.html', 'r').read()
        return open('verification_fail.html', 'r').read()


if __name__ == '__main__':
    Verify().go()

1ce611a33f0ee70b20626a62f2a9d7bc56a9278c
<mask token>


class Verify(Base):
    <mask token>

    def __init__(self):
        Base.__init__(self)
        self.conf = conf.getInstance()
        self.verified_user = None
        self.require_login = False

    def process(self):
        Base.process(self)
        if 't' in self.form:
            token = self.form['t'].value
            self.verified_user = self.emails.verify_email_token(token)
            if self.verified_user:
                self.emails.send_welcome_email(self.verified_user)

    def _getBody(self):
        if self.verified_user:
            return open('verification_success.html', 'r').read()
        return open('verification_fail.html', 'r').read()


<mask token>

<mask token>


class Verify(Base):

    @property
    def name(self):
        return 'verify'

    def __init__(self):
        Base.__init__(self)
        self.conf = conf.getInstance()
        self.verified_user = None
        self.require_login = False

    def process(self):
        Base.process(self)
        if 't' in self.form:
            token = self.form['t'].value
            self.verified_user = self.emails.verify_email_token(token)
            if self.verified_user:
                self.emails.send_welcome_email(self.verified_user)

    def _getBody(self):
        if self.verified_user:
            return open('verification_success.html', 'r').read()
        return open('verification_fail.html', 'r').read()


<mask token>

<mask token>


class Verify(Base):

    @property
    def name(self):
        return 'verify'

    def __init__(self):
        Base.__init__(self)
        self.conf = conf.getInstance()
        self.verified_user = None
        self.require_login = False

    def process(self):
        Base.process(self)
        if 't' in self.form:
            token = self.form['t'].value
            self.verified_user = self.emails.verify_email_token(token)
            if self.verified_user:
                self.emails.send_welcome_email(self.verified_user)

    def _getBody(self):
        if self.verified_user:
            return open('verification_success.html', 'r').read()
        return open('verification_fail.html', 'r').read()


if __name__ == '__main__':
    Verify().go()

from vlib import conf
from vweb.html import *
from base import Base


class Verify(Base):

    @property
    def name(self):
        return 'verify'

    def __init__(self):
        Base.__init__(self)
        self.conf = conf.getInstance()
        self.verified_user = None
        self.require_login = False

    def process(self):
        Base.process(self)
        if 't' in self.form:
            token = self.form['t'].value
            self.verified_user = self.emails.verify_email_token(token)
            if self.verified_user:
                self.emails.send_welcome_email(self.verified_user)

    def _getBody(self):
        if self.verified_user:
            return open('verification_success.html', 'r').read()
        return open('verification_fail.html', 'r').read()


if __name__ == '__main__':
    Verify().go()

#!/usr/bin/env python

from vlib import conf
from vweb.html import *

from base import Base

class Verify(Base):

    @property
    def name(self): return 'verify'

    def __init__(self):
        Base.__init__(self)
        #self.style_sheets.extend(['css/home.css'])

        self.conf = conf.getInstance()
        self.verified_user = None
        self.require_login = False

    def process(self):
        Base.process(self)
        if 't' in self.form:
            token = self.form['t'].value
            self.verified_user = self.emails.verify_email_token(token)
            if self.verified_user:
                self.emails.send_welcome_email(self.verified_user)
                                           
    def _getBody(self):
        if self.verified_user:
            return open('verification_success.html', 'r').read()
        return open('verification_fail.html', 'r').read()


if __name__ == '__main__':
    Verify().go()
