Show More
@@ -77,6 +77,8 b' class AuthUser(object):' | |||
|
77 | 77 | """ |
|
78 | 78 | def __init__(self): |
|
79 | 79 | self.username = 'None' |
|
80 | self.name = '' | |
|
81 | self.lastname = '' | |
|
80 | 82 | self.user_id = None |
|
81 | 83 | self.is_authenticated = False |
|
82 | 84 | self.is_admin = False |
@@ -97,6 +97,8 b' class ValidAuth(formencode.validators.Fa' | |||
|
97 | 97 | auth_user.is_authenticated = True |
|
98 | 98 | auth_user.is_admin = user.admin |
|
99 | 99 | auth_user.user_id = user.user_id |
|
100 | auth_user.name = user.name | |
|
101 | auth_user.lastname = user.lastname | |
|
100 | 102 | session['hg_app_user'] = auth_user |
|
101 | 103 | session.save() |
|
102 | 104 | log.info('user %s is now authenticated', username) |
@@ -122,7 +124,7 b' class ValidAuth(formencode.validators.Fa' | |||
|
122 | 124 | value, state, |
|
123 | 125 | error_dict=self.e_dict_disable) |
|
124 | 126 | |
|
125 | ||
|
127 | meta.Session.remove() | |
|
126 | 128 | class ValidRepoUser(formencode.validators.FancyValidator): |
|
127 | 129 | |
|
128 | 130 | def to_python(self, value, state): |
General Comments 0
You need to be logged in to leave comments.
Login now