mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
use /account/... links for mail/password change
This commit is contained in:
parent
03a6780405
commit
9f3b80a859
4 changed files with 8 additions and 8 deletions
|
@ -1754,8 +1754,8 @@ sub startup {
|
||||||
$authed_r->get('/account/privacy')->to('account#privacy');
|
$authed_r->get('/account/privacy')->to('account#privacy');
|
||||||
$authed_r->get('/ajax/status_card.html')->to('traveling#status_card');
|
$authed_r->get('/ajax/status_card.html')->to('traveling#status_card');
|
||||||
$authed_r->get('/cancelled')->to('traveling#cancelled');
|
$authed_r->get('/cancelled')->to('traveling#cancelled');
|
||||||
$authed_r->get('/change_password')->to('account#password_form');
|
$authed_r->get('/account/password')->to('account#password_form');
|
||||||
$authed_r->get('/change_mail')->to('account#change_mail');
|
$authed_r->get('/account/mail')->to('account#change_mail');
|
||||||
$authed_r->get('/export.json')->to('account#json_export');
|
$authed_r->get('/export.json')->to('account#json_export');
|
||||||
$authed_r->get('/history.json')->to('traveling#json_history');
|
$authed_r->get('/history.json')->to('traveling#json_history');
|
||||||
$authed_r->get('/history')->to('traveling#history');
|
$authed_r->get('/history')->to('traveling#history');
|
||||||
|
@ -1768,8 +1768,8 @@ sub startup {
|
||||||
$authed_r->post('/account/privacy')->to('account#privacy');
|
$authed_r->post('/account/privacy')->to('account#privacy');
|
||||||
$authed_r->post('/journey/add')->to('traveling#add_journey_form');
|
$authed_r->post('/journey/add')->to('traveling#add_journey_form');
|
||||||
$authed_r->post('/journey/edit')->to('traveling#edit_journey');
|
$authed_r->post('/journey/edit')->to('traveling#edit_journey');
|
||||||
$authed_r->post('/change_password')->to('account#change_password');
|
$authed_r->post('/account/password')->to('account#change_password');
|
||||||
$authed_r->post('/change_mail')->to('account#change_mail');
|
$authed_r->post('/account/mail')->to('account#change_mail');
|
||||||
$authed_r->post('/delete')->to('account#delete');
|
$authed_r->post('/delete')->to('account#delete');
|
||||||
$authed_r->post('/logout')->to('account#do_logout');
|
$authed_r->post('/logout')->to('account#do_logout');
|
||||||
$authed_r->post('/set_token')->to('api#set_token');
|
$authed_r->post('/set_token')->to('api#set_token');
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Mail</th>
|
<th scope="row">Mail</th>
|
||||||
<td><a href="/change_mail"><i class="material-icons">edit</i></a><%= $acc->{email} %></td>
|
<td><a href="/account/mail"><i class="material-icons">edit</i></a><%= $acc->{email} %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Passwort</th>
|
<th scope="row">Passwort</th>
|
||||||
<td><a href="/change_password"><i class="material-icons">edit</i></a></td>
|
<td><a href="/account/password"><i class="material-icons">edit</i></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Öffentliche Daten</th>
|
<th scope="row">Öffentliche Daten</th>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
% }
|
% }
|
||||||
|
|
||||||
<h1>Mail ändern</h1>
|
<h1>Mail ändern</h1>
|
||||||
%= form_for '/change_mail' => (method => 'POST') => begin
|
%= form_for '/account/mail' => (method => 'POST') => begin
|
||||||
%= csrf_field
|
%= csrf_field
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="input-field col s12">
|
<div class="input-field col s12">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
% }
|
% }
|
||||||
|
|
||||||
<h1>Passwort ändern</h1>
|
<h1>Passwort ändern</h1>
|
||||||
%= form_for '/change_password' => (method => 'POST') => begin
|
%= form_for '/account/password' => (method => 'POST') => begin
|
||||||
%= csrf_field
|
%= csrf_field
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="input-field col s12">
|
<div class="input-field col s12">
|
||||||
|
|
Loading…
Reference in a new issue