File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @themost/test" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " MOST Web Framework Test Api Server" ,
5
5
"repository" : " https://github.com/themost-framework/themost-test.git" ,
6
6
"author" : " Kyriakos Barbounakis<k.barbounakis@gmail.com>" ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function authRouter() {
51
51
}
52
52
// find user from token info
53
53
// noinspection JSUnresolvedFunction
54
- return req . context . model ( 'User' ) . where ( 'name' ) . equal ( info . username ) . silent ( ) . getItem ( ) . then ( user => {
54
+ return req . context . model ( 'User' ) . where ( 'name' ) . equal ( info . user_id ) . silent ( ) . getItem ( ) . then ( user => {
55
55
// user cannot be found and of course cannot be authenticated (throw forbidden error)
56
56
if ( user == null ) {
57
57
return done ( new HttpForbiddenError ( ) ) ;
You can’t perform that action at this time.
0 commit comments