forked from engineering/cloudservices
fix issue
parent
c812a2fe02
commit
33a9493a98
|
@ -29,7 +29,7 @@ export default class CWG_SelfService extends Command {
|
||||||
const account = await this.client.db.Account.findOne({ userID: message.author.id });
|
const account = await this.client.db.Account.findOne({ userID: message.author.id });
|
||||||
if (!account) return this.error(message.channel, 'Cannot locate account.');
|
if (!account) return this.error(message.channel, 'Cannot locate account.');
|
||||||
|
|
||||||
if (!this.checkAuthorizationToken(message.author.id, args[1])) return this.error(message.channel, 'The authentication token provided is invalid.');
|
if (await this.checkAuthorizationToken(message.author.id, args[1]) !== true) return this.error(message.channel, 'The authentication token provided is invalid.');
|
||||||
|
|
||||||
if (!this.domainTextValidation(args[0])) return this.error(message.channel, 'Invalid domain.');
|
if (!this.domainTextValidation(args[0])) return this.error(message.channel, 'Invalid domain.');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue