mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-13 17:02:02 -05:00
Don't clear out the uid from the session until the record has been updated.
This commit is contained in:
1 parent
4c588b3d5f
commit
3ede5e42a5
1 file changed
+3
-3
@@ -425,9 +425,6 @@ class UserController(IPAController):
|
||||
turbogears.flash("Something went wrong. You last viewed %s but are trying to update %s" % (kw.get('uid'), edituid))
|
||||
raise turbogears.redirect('/user/show', uid=kw.get('uid'))
|
||||
|
||||
# We no longer need this
|
||||
cherrypy.session['uid'] = None
|
||||
|
||||
# Fix incoming multi-valued fields we created for the form
|
||||
kw = ipahelper.fix_incoming_fields(kw, 'cn', 'cns')
|
||||
kw = ipahelper.fix_incoming_fields(kw, 'telephonenumber', 'telephonenumbers')
|
||||
@@ -618,6 +615,9 @@ class UserController(IPAController):
|
||||
user_groups=user_groups_dicts,
|
||||
tg_template='ipagui.templates.useredit')
|
||||
|
||||
# We no longer need this
|
||||
cherrypy.session['uid'] = None
|
||||
|
||||
turbogears.flash("%s updated!" % kw['uid'])
|
||||
raise turbogears.redirect('/user/show', uid=kw['uid'])
|
||||
|
||||
|
||||
Reference in new issue
Block a user