+options['passwordChanged'] = passwordChanged
+if passwordChanged :
+ hidden_vars = ({'name' : '__ac_name', 'value' : userid},
+ {'name' : '__ac_password', 'value' : form['password']},
+ {'name' : 'noAjax', 'value' : '1'})
+ target = utool()
+ buttons = ({'name': 'login', 'value': _('Login')},)
+else :
+ hidden_vars = []
+ target = '%s/password_reset_form/%s' % (utool(), uuid)
+ buttons = ({'name': 'validate', 'value': _('Validate')},)
+
+options['form'] = { 'action': target,
+ 'listButtonInfos': tuple(buttons),
+ 'listHiddenVarInfos': hidden_vars }
+