Fixed token generation (`npm run new-token <username>`)

pull/62/head
tycrek 3 years ago
parent 7980c4c80a
commit ddb5413cc9
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -8,6 +8,7 @@ const log = new TLog();
const MAX_USERNAME = 20;
export default () => uuid().replace(/-/g, '');
module.exports = () => uuid().replace(/-/g, '');
// If directly called on the command line, generate a new token
if (require.main === module) {

Loading…
Cancel
Save