summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-06-12 19:00:42 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-06-12 19:00:42 +0200
commit6cee1e20ef10608ed8f37777cdb24236487377d3 (patch)
tree358b6429870449c33bed51ccc890eaac153dd74d /lib/Travelynx.pm
parent08abde269b56b066f9637e764ea1550d81ce6a1d (diff)
allow users to change their name
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 04056b8..2618191 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2548,6 +2548,7 @@ sub startup {
$authed_r->get('/fgr')->to('passengerrights#list_candidates');
$authed_r->get('/account/password')->to('account#password_form');
$authed_r->get('/account/mail')->to('account#change_mail');
+ $authed_r->get('/account/name')->to('account#change_name');
$authed_r->get('/export.json')->to('account#json_export');
$authed_r->get('/history.json')->to('traveling#json_history');
$authed_r->get('/history.csv')->to('traveling#csv_history');
@@ -2572,6 +2573,7 @@ sub startup {
->to('passengerrights#generate');
$authed_r->post('/account/password')->to('account#change_password');
$authed_r->post('/account/mail')->to('account#change_mail');
+ $authed_r->post('/account/name')->to('account#change_name');
$authed_r->post('/delete')->to('account#delete');
$authed_r->post('/logout')->to('account#do_logout');
$authed_r->post('/set_token')->to('api#set_token');