|
|
@ -26,7 +26,7 @@ class LoginForm extends React.PureComponent {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
onSubmit: (username: string, password: string, encryptionPassword: string, serviceApiUrl: string) => void;
|
|
|
|
onSubmit: (username: string, password: string, encryptionPassword: string, serviceApiUrl?: string) => void;
|
|
|
|
loading?: boolean;
|
|
|
|
loading?: boolean;
|
|
|
|
error?: Error;
|
|
|
|
error?: Error;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -55,7 +55,7 @@ class LoginForm extends React.PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
generateEncryption(e: any) {
|
|
|
|
generateEncryption(e: any) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
|
const server = this.state.showAdvanced ? this.state.server : C.serviceApiBase;
|
|
|
|
const server = this.state.showAdvanced ? this.state.server : undefined;
|
|
|
|
|
|
|
|
|
|
|
|
const username = this.state.username;
|
|
|
|
const username = this.state.username;
|
|
|
|
const password = this.state.password;
|
|
|
|
const password = this.state.password;
|
|
|
|