cubicweb/web/views/basetemplates.py
changeset 11913 4516c3956d46
parent 11874 ea1d92b677b5
child 11996 b8ebd8724a37
equal deleted inserted replaced
11912:c9e6df20e5a4 11913:4516c3956d46
   472             target = self._cw.form.get('postlogin_path',
   472             target = self._cw.form.get('postlogin_path',
   473                                        self._cw.relative_path())
   473                                        self._cw.relative_path())
   474             url_args = {}
   474             url_args = {}
   475             if target and target != '/':
   475             if target and target != '/':
   476                 url_args['postlogin_path'] = target
   476                 url_args['postlogin_path'] = target
   477             return self._cw.build_url('login', __secure__=True, **url_args)
   477             return self._cw.build_url('login', **url_args)
   478         return super(BaseLogForm, self).form_action()
   478         return super(BaseLogForm, self).form_action()
   479 
   479 
   480 
   480 
   481 class LogForm(BaseLogForm):
   481 class LogForm(BaseLogForm):
   482     """Simple login form that send username and password
   482     """Simple login form that send username and password