File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ def error(message, code = 500)
50
50
end
51
51
52
52
def login_and_redirect ( request )
53
- request . session [ 'omniauth.origin' ] = request . url unless request . url == '/_proxes/auth/identity '
54
- redirect '/_proxes/auth/identity '
53
+ request . session [ 'omniauth.origin' ] = request . url unless request . url == '/_proxes/auth/login '
54
+ redirect '/_proxes/auth/login '
55
55
end
56
56
57
57
def redirect ( destination , code = 302 )
Original file line number Diff line number Diff line change 18
18
"sizes" : " 192x192"
19
19
}
20
20
],
21
- "start_url" : " _proxes/auth/identity " ,
22
- "theme_color" : " #ffffff " ,
23
- "background_color" : " #ffffff " ,
24
- "display" : " standalone "
21
+ "start_url" : " _proxes/auth/login " ,
22
+ "theme_color" : " #bebebe " ,
23
+ "background_color" : " #bebebe " ,
24
+ "display" : " fullscreen "
25
25
}
Original file line number Diff line number Diff line change 10
10
ProxES
11
11
12
12
-if authenticated?
13
- % form .nav.navbar-top-links.navbar-form.navbar-right { action: "#{settings.map_path}/auth/identity ", method: 'post ' }
13
+ = delete_form_tag( " #{ settings.map_path } /auth" , attributes: { class: 'nav navbar-top-links navbar-form navbar-right ' }) do
14
14
%a .btn.btn-default { href: "#{settings.map_path}/users/profile" } My Account
15
- %input { name: '_method', value: 'DELETE', type: 'hidden' }
16
15
%button .btn.btn-default { type: 'submit' }
17
16
/ %i.ti-panel
18
17
Logout
19
18
- else
20
19
%ul .nav.navbar-top-links.navbar-right
21
20
%li
22
- %a .btn.btn-link { href: "#{settings.map_path}/auth/identity " }
21
+ %a .btn.btn-link { href: "#{settings.map_path}/auth/login " }
23
22
Log In
24
23
.navbar-default.sidebar { role: 'navigation' }
25
24
= haml :'partials/sidebar'
You can’t perform that action at this time.
0 commit comments