examples: unskip vweb_orm_jwt from building, since it is not working directly with mysql anymore (#15671)

This commit is contained in:
Hitalo Souza 2022-10-22 13:12:54 -03:00 committed by GitHub
parent a23e06184d
commit 3d4ffe8f28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 2 deletions

View file

@ -74,6 +74,9 @@ fn make_token(user User) string {
}
fn auth_verify(token string) bool {
if token == '' {
return false
}
secret := os.getenv('SECRET_KEY')
token_split := token.split('.')

View file

@ -28,3 +28,8 @@ fn new_app() &App {
return app
}
['/'; get]
pub fn (mut app App) ping() ?vweb.Result {
return app.text('ping')
}