mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 02:35:25 +02:00
improve token-id format to make it more secure
This commit is contained in:
@@ -345,7 +345,7 @@ module.exports = function(options) {
|
||||
, secret: options.secret
|
||||
})
|
||||
|
||||
var tokenId = uuid.v4()
|
||||
var tokenId = util.format('%s-%s', uuid.v4(), uuid.v4()).replace(/-/g, '')
|
||||
, title = data.title
|
||||
|
||||
return dbapi.saveUserAccessToken(user.email, {
|
||||
|
||||
Reference in New Issue
Block a user