forked from Alex/Pterodactyl-Panel
ui: remove old console logs
This commit is contained in:
parent
3b1a0e22a7
commit
23de3d68f3
@ -4,8 +4,6 @@ import { base64Decode, bufferDecode, bufferEncode, decodeCredentials } from '@/a
|
||||
|
||||
export default (token: string, publicKey: PublicKeyCredentialRequestOptions): Promise<LoginResponse> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.log(token);
|
||||
console.log(publicKey);
|
||||
const publicKeyCredential = Object.assign({}, publicKey);
|
||||
|
||||
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 => {
|
||||
return resolve({
|
||||
|
@ -13,8 +13,6 @@ export default (id: number, node: Partial<Node>, include: string[] = []): Promis
|
||||
data[key2] = node[key];
|
||||
});
|
||||
|
||||
console.log(data);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
http.patch(`/api/application/nodes/${id}`, {
|
||||
...data,
|
||||
|
@ -44,17 +44,13 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
|
||||
|
||||
login({ ...values, recaptchaData: token })
|
||||
.then(response => {
|
||||
console.log('wow!');
|
||||
console.log(response);
|
||||
if (response.complete) {
|
||||
console.log(`Redirecting to: ${response.intended || '/'}`);
|
||||
// @ts-ignore
|
||||
window.location = response.intended || '/';
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.methods?.includes('webauthn')) {
|
||||
console.log('Redirecting to: /auth/login/key');
|
||||
history.replace('/auth/login/key', {
|
||||
token: response.confirmationToken,
|
||||
publicKey: response.publicKey,
|
||||
@ -64,12 +60,8 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
|
||||
}
|
||||
|
||||
if (response.methods?.includes('totp')) {
|
||||
console.log('/auth/login/checkpoint');
|
||||
history.replace('/auth/login/checkpoint', { token: response.confirmationToken });
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('huh?');
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
|
@ -264,9 +264,7 @@ export default ({ className, style, overrides, initialContent, extensions, mode,
|
||||
effects: languageConfig.reconfigure(findLanguageExtensionByMode(mode)),
|
||||
});
|
||||
|
||||
console.log(mode);
|
||||
if (onModeChanged !== undefined) {
|
||||
console.log(mode);
|
||||
onModeChanged(mode);
|
||||
}
|
||||
}, [ filename ]);
|
||||
|
Loading…
Reference in New Issue
Block a user