ui: remove old console logs

This commit is contained in:
Matthew Penner 2021-07-21 12:21:10 -06:00
parent 3b1a0e22a7
commit 23de3d68f3
4 changed files with 0 additions and 15 deletions

View File

@ -4,8 +4,6 @@ import { base64Decode, bufferDecode, bufferEncode, decodeCredentials } from '@/a
export default (token: string, publicKey: PublicKeyCredentialRequestOptions): Promise<LoginResponse> => { export default (token: string, publicKey: PublicKeyCredentialRequestOptions): Promise<LoginResponse> => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
console.log(token);
console.log(publicKey);
const publicKeyCredential = Object.assign({}, publicKey); const publicKeyCredential = Object.assign({}, publicKey);
publicKeyCredential.challenge = bufferDecode(base64Decode(publicKey.challenge.toString())); publicKeyCredential.challenge = bufferDecode(base64Decode(publicKey.challenge.toString()));
@ -38,7 +36,6 @@ export default (token: string, publicKey: PublicKeyCredentialRequestOptions): Pr
}, },
}), }),
}; };
console.log(data);
http.post('/auth/login/checkpoint/key', data).then(response => { http.post('/auth/login/checkpoint/key', data).then(response => {
return resolve({ return resolve({

View File

@ -13,8 +13,6 @@ export default (id: number, node: Partial<Node>, include: string[] = []): Promis
data[key2] = node[key]; data[key2] = node[key];
}); });
console.log(data);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
http.patch(`/api/application/nodes/${id}`, { http.patch(`/api/application/nodes/${id}`, {
...data, ...data,

View File

@ -44,17 +44,13 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
login({ ...values, recaptchaData: token }) login({ ...values, recaptchaData: token })
.then(response => { .then(response => {
console.log('wow!');
console.log(response);
if (response.complete) { if (response.complete) {
console.log(`Redirecting to: ${response.intended || '/'}`);
// @ts-ignore // @ts-ignore
window.location = response.intended || '/'; window.location = response.intended || '/';
return; return;
} }
if (response.methods?.includes('webauthn')) { if (response.methods?.includes('webauthn')) {
console.log('Redirecting to: /auth/login/key');
history.replace('/auth/login/key', { history.replace('/auth/login/key', {
token: response.confirmationToken, token: response.confirmationToken,
publicKey: response.publicKey, publicKey: response.publicKey,
@ -64,12 +60,8 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
} }
if (response.methods?.includes('totp')) { if (response.methods?.includes('totp')) {
console.log('/auth/login/checkpoint');
history.replace('/auth/login/checkpoint', { token: response.confirmationToken }); history.replace('/auth/login/checkpoint', { token: response.confirmationToken });
return;
} }
console.log('huh?');
}) })
.catch(error => { .catch(error => {
console.error(error); console.error(error);

View File

@ -264,9 +264,7 @@ export default ({ className, style, overrides, initialContent, extensions, mode,
effects: languageConfig.reconfigure(findLanguageExtensionByMode(mode)), effects: languageConfig.reconfigure(findLanguageExtensionByMode(mode)),
}); });
console.log(mode);
if (onModeChanged !== undefined) { if (onModeChanged !== undefined) {
console.log(mode);
onModeChanged(mode); onModeChanged(mode);
} }
}, [ filename ]); }, [ filename ]);