rc1
This commit is contained in:
		| @ -5,7 +5,8 @@ const {Auth} = require('../models/auth'); | ||||
| async function auth(req, res, next){ | ||||
| 	try{ | ||||
| 		let user = await Auth.checkToken({token: req.header('auth-token')}); | ||||
| 		if(user.username){ | ||||
|  | ||||
| 		if(user.uid){ | ||||
| 			req.user = user; | ||||
| 			return next(); | ||||
| 		} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user