diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-19 15:56:54 -0400 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-19 15:56:54 -0400 |
commit | 24d0943cdc3f50ac1063b6fb8308ce21d940c67d (patch) | |
tree | 3c6144f13dad9e848f5a8c1dfb0f8dbedaa0b976 /lib/Travelynx/Controller | |
parent | f7db1c6a2642238b440aba39ee7e9133dfd1e901 (diff) |
refactor set_status_query and get_token_query
Diffstat (limited to 'lib/Travelynx/Controller')
-rw-r--r-- | lib/Travelynx/Controller/Account.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index 9e8c1fb..8626dc8 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -171,7 +171,7 @@ sub verify { $self->render( 'register', invalid => 'token' ); return; } - $self->app->set_status_query->execute( 1, $id ); + $self->app->pg->db->update( 'users', { status => 1 }, { id => $id } ); $self->render( 'login', from => 'verification' ); } |