mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: unskip vweb_orm_jwt from building, since it is not working directly with mysql anymore (#15671)
This commit is contained in:
@ -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('.')
|
||||
|
||||
|
@ -28,3 +28,8 @@ fn new_app() &App {
|
||||
|
||||
return app
|
||||
}
|
||||
|
||||
['/'; get]
|
||||
pub fn (mut app App) ping() ?vweb.Result {
|
||||
return app.text('ping')
|
||||
}
|
||||
|
Reference in New Issue
Block a user