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:
parent
a23e06184d
commit
3d4ffe8f28
@ -171,7 +171,6 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession {
|
||||
skip_files << 'examples/database/mysql.v'
|
||||
skip_files << 'examples/database/orm.v'
|
||||
skip_files << 'examples/database/psql/customer.v'
|
||||
skip_files << 'examples/vweb_orm_jwt' // requires mysql
|
||||
}
|
||||
$if windows {
|
||||
skip_files << 'examples/database/mysql.v'
|
||||
@ -181,7 +180,6 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession {
|
||||
skip_files << 'examples/websocket/client-server/client.v' // requires OpenSSL
|
||||
skip_files << 'examples/websocket/client-server/server.v' // requires OpenSSL
|
||||
skip_files << 'vlib/v/tests/websocket_logger_interface_should_compile_test.v' // requires OpenSSL
|
||||
skip_files << 'examples/vweb_orm_jwt' // requires mysql
|
||||
$if tinyc {
|
||||
skip_files << 'examples/database/orm.v' // try fix it
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ import testing
|
||||
|
||||
const vroot = @VMODROOT
|
||||
|
||||
// build as a project folder
|
||||
const efolders = [
|
||||
'examples/viewer',
|
||||
'examples/vweb_orm_jwt',
|
||||
|
BIN
database.db
Normal file
BIN
database.db
Normal file
Binary file not shown.
@ -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')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user