File tree Expand file tree Collapse file tree 15 files changed +42
-48
lines changed
Expand file tree Collapse file tree 15 files changed +42
-48
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { OAuth } from 'meteor/oauth';
77
88import { isURL } from '../../../lib/utils/isURL' ;
99import type { IOAuthProvider } from '../../definitions/IOAuthProvider' ;
10- import { createOAuthTotpLoginMethod } from '../../meteor/overrides/ login/oauth' ;
10+ import { createOAuthTotpLoginMethod } from '../../meteor/login/oauth' ;
1111import { overrideLoginMethod , type LoginCallback } from '../2fa/overrideLoginMethod' ;
1212import { loginServices } from '../loginServices' ;
1313import { CustomOAuthError } from './CustomOAuthError' ;
Original file line number Diff line number Diff line change 1- import './meteor/overrides/desktopInjection' ;
2- import './meteor/overrides/ddpOverREST' ;
3- import './meteor/overrides/oauthRedirectUri' ;
4- import './meteor/overrides/settings' ;
5- import './meteor/overrides/totpOnCall' ;
6- import './meteor/overrides/unstoreLoginToken' ;
7- import './meteor/overrides/userAndUsers' ;
1+ import './meteor/overrides' ;
82import './meteor/startup' ;
93import './serviceWorker' ;
104
115import ( '@rocket.chat/fuselage-polyfills' )
12- . then ( ( ) => import ( './meteor/overrides ' ) )
6+ . then ( ( ) => import ( './meteor/login ' ) )
137 . then ( ( ) => import ( './ecdh' ) )
148 . then ( ( ) => import ( './importPackages' ) )
159 . then ( ( ) => import ( './startup' ) )
Original file line number Diff line number Diff line change 11import { Random } from '@rocket.chat/random' ;
22import { Meteor } from 'meteor/meteor' ;
33
4- import { callLoginMethod } from '../../../ lib/2fa/overrideLoginMethod' ;
4+ import { callLoginMethod } from '../../lib/2fa/overrideLoginMethod' ;
55
66declare module 'meteor/meteor' {
77 // eslint-disable-next-line @typescript-eslint/no-namespace
@@ -12,7 +12,7 @@ declare module 'meteor/meteor' {
1212
1313Meteor . loginWithCas = ( _ , callback ) => {
1414 const credentialToken = Random . id ( ) ;
15- import ( '../../../ lib/openCASLoginPopup' )
15+ import ( '../../lib/openCASLoginPopup' )
1616 . then ( ( { openCASLoginPopup } ) => openCASLoginPopup ( credentialToken ) )
1717 . then ( ( ) => callLoginMethod ( { methodArguments : [ { cas : { credentialToken } } ] } ) )
1818 . then ( ( ) => callback ?.( ) )
Original file line number Diff line number Diff line change 11import { Meteor } from 'meteor/meteor' ;
22
3- import { callLoginMethod , handleLogin , type LoginCallback } from '../../../ lib/2fa/overrideLoginMethod' ;
3+ import { callLoginMethod , handleLogin , type LoginCallback } from '../../lib/2fa/overrideLoginMethod' ;
44
55declare module 'meteor/meteor' {
66 // eslint-disable-next-line @typescript-eslint/no-namespace
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { Meteor } from 'meteor/meteor';
77import { OAuth } from 'meteor/oauth' ;
88
99import { createOAuthTotpLoginMethod } from './oauth' ;
10- import { overrideLoginMethod } from '../../../ lib/2fa/overrideLoginMethod' ;
11- import { wrapRequestCredentialFn } from '../../../ lib/wrapRequestCredentialFn' ;
10+ import { overrideLoginMethod } from '../../lib/2fa/overrideLoginMethod' ;
11+ import { wrapRequestCredentialFn } from '../../lib/wrapRequestCredentialFn' ;
1212
1313const { loginWithFacebook } = Meteor ;
1414const loginWithFacebookAndTOTP = createOAuthTotpLoginMethod ( Facebook ) ;
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { Meteor } from 'meteor/meteor';
77import { OAuth } from 'meteor/oauth' ;
88
99import { createOAuthTotpLoginMethod } from './oauth' ;
10- import { overrideLoginMethod } from '../../../ lib/2fa/overrideLoginMethod' ;
11- import { wrapRequestCredentialFn } from '../../../ lib/wrapRequestCredentialFn' ;
10+ import { overrideLoginMethod } from '../../lib/2fa/overrideLoginMethod' ;
11+ import { wrapRequestCredentialFn } from '../../lib/wrapRequestCredentialFn' ;
1212
1313const { loginWithGithub } = Meteor ;
1414const loginWithGithubAndTOTP = createOAuthTotpLoginMethod ( Github ) ;
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { Meteor } from 'meteor/meteor';
77import { OAuth } from 'meteor/oauth' ;
88
99import { createOAuthTotpLoginMethod } from './oauth' ;
10- import { overrideLoginMethod , type LoginCallback } from '../../../ lib/2fa/overrideLoginMethod' ;
11- import { wrapRequestCredentialFn } from '../../../ lib/wrapRequestCredentialFn' ;
10+ import { overrideLoginMethod , type LoginCallback } from '../../lib/2fa/overrideLoginMethod' ;
11+ import { wrapRequestCredentialFn } from '../../lib/wrapRequestCredentialFn' ;
1212
1313declare module 'meteor/meteor' {
1414 // eslint-disable-next-line @typescript-eslint/no-namespace
Original file line number Diff line number Diff line change 1+ import './cas' ;
2+ import './crowd' ;
3+ import './facebook' ;
4+ import './github' ;
5+ import './google' ;
6+ import './ldap' ;
7+ import './meteorDeveloperAccount' ;
8+ import './oauth' ;
9+ import './password' ;
10+ import './saml' ;
11+ import './twitter' ;
Original file line number Diff line number Diff line change 11import { Meteor } from 'meteor/meteor' ;
22
3- import { callLoginMethod , handleLogin , type LoginCallback } from '../../../ lib/2fa/overrideLoginMethod' ;
3+ import { callLoginMethod , handleLogin , type LoginCallback } from '../../lib/2fa/overrideLoginMethod' ;
44
55declare module 'meteor/meteor' {
66 // eslint-disable-next-line @typescript-eslint/no-namespace
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { MeteorDeveloperAccounts } from 'meteor/meteor-developer-oauth';
55import { OAuth } from 'meteor/oauth' ;
66
77import { createOAuthTotpLoginMethod } from './oauth' ;
8- import { overrideLoginMethod } from '../../../ lib/2fa/overrideLoginMethod' ;
9- import { wrapRequestCredentialFn } from '../../../ lib/wrapRequestCredentialFn' ;
8+ import { overrideLoginMethod } from '../../lib/2fa/overrideLoginMethod' ;
9+ import { wrapRequestCredentialFn } from '../../lib/wrapRequestCredentialFn' ;
1010
1111const { loginWithMeteorDeveloperAccount } = Meteor ;
1212const loginWithMeteorDeveloperAccountAndTOTP = createOAuthTotpLoginMethod ( MeteorDeveloperAccounts ) ;
You can’t perform that action at this time.
0 commit comments