forked from engineering/cloudservices
updates to cacc
commit
ec900dd23c
|
@ -84,8 +84,7 @@ export default class CreateAccount extends Command {
|
|||
<li><a target="_blank" href="https://discordapp.com/channels/446067825673633794/620355063088414769">#cloud-announcements</a> - Announcements regarding the cloud machine will be here. These include planned maintenance, updates to preinstalled services etc.</li>
|
||||
<li><a target="_blank" href="https://discordapp.com/channels/446067825673633794/620349128295186472">#cloud-info</a> - Important information you will need to, or should, know to a certain extent. These include our infractions system and Tier limits</li>
|
||||
<li><a target="_blank" href="https://discordapp.com/channels/446067825673633794/546457788184789013">#cloud-support</a> - A support channel specifically for the cloud machine, you can use this to ask how to renew your certificates, for example</li>
|
||||
<li><a target="_blank" href="https://support.libraryofcode.org">Library of Code Support Desk</a> - Our Support desk, you will find some handy info there</li>
|
||||
<li><a target="_blank" href="https://wiki.cloud.libraryofcode.org">Library of Code sp-us | Cloud Wiki</a> - A wiki channel for everything related to the Cloud Services.</li>
|
||||
<li><a target="_blank" href="https://support.libraryofcode.org">Library of Code Support Desk</a> - Our Support desk, you can contact Staff here.</li>
|
||||
<li><a target="_blank" href="https://www.securesign.org">SecureSign</a> - our certificates manager</li>
|
||||
</ul>
|
||||
<h3>Want to support us?</h3>
|
||||
|
|
|
@ -24,6 +24,7 @@ export default class SecureSign_Init extends Command {
|
|||
if (options.s && options.s.toLowerCase() !== 'ecc' && options.s.toLowerCase() !== 'rsa') return message.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid signing type, choose between \`ecc\` or \`rsa\``);
|
||||
if (options.c && (!Number(options.c) || Number(options.c) < 1 || Number(options.c) > 3)) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid class selected, choose between Class \`1\`, \`2\` or \`3\``);
|
||||
if (options.m && (!Number(options.m) || (options.m !== '256' && options.m !== '384' && options.m !== '512'))) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid SHA Digest selected, choose between \`256\`, \`384\` or \`512\``);
|
||||
if (Number(options.c) === 3 && (!options.s || options.s.toLowerCase() === 'ecc')) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Class 3 ECC certificates are not supported, please use the \`-s rsa\` option instead***`);
|
||||
|
||||
const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Creating certificate...***`);
|
||||
const hash = this.client.util.getAcctHash(account.homepath);
|
||||
|
|
|
@ -23,11 +23,15 @@ export default function checkSS(client: Client) {
|
|||
}
|
||||
} catch (error) {
|
||||
if (!hash) return;
|
||||
try {
|
||||
const { status } = error.response;
|
||||
if (status === 400 || status === 401 || status === 403 || status === 404) {
|
||||
await client.db.Account.updateOne({ userID }, { $set: { hash: false } });
|
||||
client.getDMChannel(userID).then((channel) => channel.createMessage('Your SecureSign password has been reset - please reinitialize your SecureSign account. Run `=securesign init` for more information')).catch();
|
||||
}
|
||||
} catch (e) {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue