mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
improve token-id format to make it more secure
This commit is contained in:
parent
8a342daef9
commit
6d99bace91
2 changed files with 2 additions and 2 deletions
|
@ -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, {
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
textarea(readonly, rows='1', text-focus-select, ng-model='newToken.tokenId').form-control.token-id-textarea
|
||||
|
||||
ul.list-group.key-list
|
||||
li.list-group-item(ng-repeat='title in accessTokenTitles').animate-repeat
|
||||
li.list-group-item(ng-repeat='title in accessTokenTitles track by $index').animate-repeat
|
||||
a
|
||||
i.fa.fa-key.fa-2x.fa-fw.key-list-icon
|
||||
.key-list-details.selectable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue