Skip to content

Commit edaae1b

Browse files
committed
refac: Use dittys latest auth paths
1 parent 413ed46 commit edaae1b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

lib/proxes/middleware/error_handling.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def error(message, code = 500)
5050
end
5151

5252
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'
5555
end
5656

5757
def redirect(destination, code = 302)

public/manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"sizes": "192x192"
1919
}
2020
],
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"
2525
}

views/partials/navbar.haml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010
ProxES
1111

1212
-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
1414
%a.btn.btn-default{ href: "#{settings.map_path}/users/profile" } My Account
15-
%input{ name: '_method', value: 'DELETE', type: 'hidden' }
1615
%button.btn.btn-default{ type: 'submit' }
1716
/ %i.ti-panel
1817
Logout
1918
- else
2019
%ul.nav.navbar-top-links.navbar-right
2120
%li
22-
%a.btn.btn-link{ href: "#{settings.map_path}/auth/identity" }
21+
%a.btn.btn-link{ href: "#{settings.map_path}/auth/login" }
2322
Log In
2423
.navbar-default.sidebar{ role: 'navigation' }
2524
= haml :'partials/sidebar'

0 commit comments

Comments
 (0)