diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-01-22 12:33:02 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-01-22 12:33:02 +0100 |
commit | 8e94fcea5ff99023c108da0f58abb421f16454e8 (patch) | |
tree | 160df6bf04d36b8914d5ed156d50673092beecd1 /lib/Travelynx/Controller/Api.pm | |
parent | 59e9a24aa63d0209ea301b2c4aa71687e8295be6 (diff) |
move token type to ID map from Travelynx.pm to Model/Users
Diffstat (limited to 'lib/Travelynx/Controller/Api.pm')
-rwxr-xr-x | lib/Travelynx/Controller/Api.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index 6f788b5..7164b5b 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -571,7 +571,7 @@ sub set_token { return; } my $token = make_token(); - my $token_id = $self->app->token_type->{ $self->param('token') }; + my $token_id = $self->users->get_token_id( $self->param('token') ); if ( not $token_id ) { $self->redirect_to('account'); |