mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Bugfix to pass feature test
- check if session[:return_to] is nil - adds unique html ids for dropdown login fields
This commit is contained in:
parent
0a5f08878f
commit
12e6fd9cb5
2 changed files with 4 additions and 3 deletions
|
|
@ -9,7 +9,8 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
if not session[:return_to].start_with?(user_registration_path)
|
if session[:return_to] and
|
||||||
|
not session[:return_to].start_with?(user_registration_path)
|
||||||
logger.debug "Returning to #{session[:return_to]}"
|
logger.debug "Returning to #{session[:return_to]}"
|
||||||
session[:return_to]
|
session[:return_to]
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,8 @@
|
||||||
%span.caret
|
%span.caret
|
||||||
.dropdown-menu{:style => "padding: 17px;"}
|
.dropdown-menu{:style => "padding: 17px;"}
|
||||||
= form_tag user_session_path do
|
= form_tag user_session_path do
|
||||||
= text_field_tag 'user[email]'
|
= text_field_tag 'user[email]', nil, id: 'user_email_dd'
|
||||||
= password_field_tag 'user[password]'
|
= password_field_tag 'user[password]', nil, id: 'user_password_dd'
|
||||||
%label.checkbox
|
%label.checkbox
|
||||||
= check_box_tag 'user[remember_me]'
|
= check_box_tag 'user[remember_me]'
|
||||||
Remember me
|
Remember me
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue