export icredentials
This commit is contained in:
parent
6acd5d1501
commit
3aed0513bc
|
@ -0,0 +1,15 @@
|
||||||
|
export interface ICredentials {
|
||||||
|
user?: string;
|
||||||
|
password?: string;
|
||||||
|
username?: string;
|
||||||
|
ldapPass?: string;
|
||||||
|
ldap?: boolean;
|
||||||
|
ldapOptions?: object;
|
||||||
|
crowdPassword?: string;
|
||||||
|
crowd?: boolean;
|
||||||
|
code?: string;
|
||||||
|
totp?: {
|
||||||
|
login: ICredentials;
|
||||||
|
code: string;
|
||||||
|
};
|
||||||
|
}
|
|
@ -24,6 +24,7 @@ export * from './IServerHistory';
|
||||||
export * from './IRocketChat';
|
export * from './IRocketChat';
|
||||||
export * from './ICertificate';
|
export * from './ICertificate';
|
||||||
export * from './IUrl';
|
export * from './IUrl';
|
||||||
|
export * from './ICredentials';
|
||||||
|
|
||||||
export interface IBaseScreen<T extends Record<string, object | undefined>, S extends string> {
|
export interface IBaseScreen<T extends Record<string, object | undefined>, S extends string> {
|
||||||
navigation: StackNavigationProp<T, S>;
|
navigation: StackNavigationProp<T, S>;
|
||||||
|
|
|
@ -10,23 +10,7 @@ import { loginRequest, setUser } from '../../../actions/login';
|
||||||
import sdk from './sdk';
|
import sdk from './sdk';
|
||||||
import I18n from '../../../i18n';
|
import I18n from '../../../i18n';
|
||||||
import { MIN_ROCKETCHAT_VERSION } from '../rocketchat';
|
import { MIN_ROCKETCHAT_VERSION } from '../rocketchat';
|
||||||
import { ILoggedUser } from '../../../definitions';
|
import { ICredentials, ILoggedUser } from '../../../definitions';
|
||||||
|
|
||||||
interface ICredentials {
|
|
||||||
user?: string;
|
|
||||||
password?: string;
|
|
||||||
username?: string;
|
|
||||||
ldapPass?: string;
|
|
||||||
ldap?: boolean;
|
|
||||||
ldapOptions?: object;
|
|
||||||
crowdPassword?: string;
|
|
||||||
crowd?: boolean;
|
|
||||||
code?: string;
|
|
||||||
totp?: {
|
|
||||||
login: ICredentials;
|
|
||||||
code: string;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async function login(credentials: ICredentials, isFromWebView = false) {
|
async function login(credentials: ICredentials, isFromWebView = false) {
|
||||||
// RC 0.64.0
|
// RC 0.64.0
|
||||||
|
|
Loading…
Reference in New Issue