Show More
@@ -26,13 +26,13 b' import logging' | |||
|
26 | 26 | import traceback |
|
27 | 27 | |
|
28 | 28 | import datetime |
|
29 | from pylons import url | |
|
30 | 29 | from pylons.i18n.translation import _ |
|
31 | 30 | |
|
32 | 31 | import ipaddress |
|
33 | 32 | from sqlalchemy.exc import DatabaseError |
|
34 | 33 | from sqlalchemy.sql.expression import true, false |
|
35 | 34 | |
|
35 | from rhodecode.events import UserPreCreate, UserPreUpdate | |
|
36 | 36 | from rhodecode.lib.utils2 import ( |
|
37 | 37 | safe_unicode, get_current_rhodecode_user, action_logger_generic, |
|
38 | 38 | AttributeDict) |
@@ -270,10 +270,12 b' class UserModel(BaseModel):' | |||
|
270 | 270 | # raises UserCreationError if it's not allowed for any reason to |
|
271 | 271 | # create new active user, this also executes pre-create hooks |
|
272 | 272 | check_allowed_create_user(user_data, cur_user, strict_check=True) |
|
273 | self.send_event(UserPreCreate(user_data)) | |
|
273 | 274 | new_user = User() |
|
274 | 275 | edit = False |
|
275 | 276 | else: |
|
276 | 277 | log.debug('updating user %s', username) |
|
278 | self.send_event(UserPreUpdate(user, user_data)) | |
|
277 | 279 | new_user = user |
|
278 | 280 | edit = True |
|
279 | 281 |
General Comments 0
You need to be logged in to leave comments.
Login now