Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8d82e4

Browse files
committed
emove forgot password and reset it
1 parent95361a2 commitb8d82e4

File tree

4 files changed

+1
-28
lines changed

4 files changed

+1
-28
lines changed

‎viewer/packages/lowcoder/src/app.tsx‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import {
1919
SETTING_URL,
2020
USER_AUTH_URL,
2121
ADMIN_APP_URL,
22-
ORG_AUTH_FORGOT_PASSWORD_URL,
23-
ORG_AUTH_RESET_PASSWORD_URL,
2422
}from"constants/routesURL";
2523
importReactfrom"react";
2624
import{createRoot}from"react-dom/client";
@@ -306,14 +304,6 @@ class AppIndex extends React.Component<AppIndexProps, any> {
306304
path={ORG_AUTH_REGISTER_URL}
307305
component={LazyUserAuthComp}
308306
/>
309-
<LazyRoute
310-
path={ORG_AUTH_FORGOT_PASSWORD_URL}
311-
component={LazyUserAuthComp}
312-
/>
313-
<LazyRoute
314-
path={ORG_AUTH_RESET_PASSWORD_URL}
315-
component={LazyUserAuthComp}
316-
/>
317307
<LazyRoute
318308
path={INVITE_LANDING_URL}
319309
component={LazyInviteLanding}

‎viewer/packages/lowcoder/src/constants/authConstants.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import {
55
AUTH_REGISTER_URL,
66
AUTH_RESET_PASSWORD_URL,
77
OAUTH_REDIRECT,
8-
ORG_AUTH_FORGOT_PASSWORD_URL,
98
ORG_AUTH_LOGIN_URL,
109
ORG_AUTH_REGISTER_URL,
11-
ORG_AUTH_RESET_PASSWORD_URL,
1210
}from"constants/routesURL";
1311
import{InviteInfo}from"api/inviteApi";
1412
importLogin,{ThirdPartyBindCard}from"pages/userAuth/login";
@@ -97,8 +95,6 @@ export const AuthRoutes: Array<{ path: string; component: React.ComponentType<an
9795
{path:OAUTH_REDIRECT,component:AuthRedirect},
9896
{path:ORG_AUTH_LOGIN_URL,component:Login},
9997
{path:ORG_AUTH_REGISTER_URL,component:UserRegister},
100-
{path:ORG_AUTH_FORGOT_PASSWORD_URL,component:ForgotPassword},
101-
{path:ORG_AUTH_RESET_PASSWORD_URL,component:ResetPassword},
10298
];
10399

104100
exporttypeServerAuthType="GOOGLE"|"GITHUB"|"FORM"|"KEYCLOAK"|"ORY"|"GENERIC";

‎viewer/packages/lowcoder/src/constants/routesURL.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ export const LDAP_AUTH_LOGIN_URL = `${USER_AUTH_URL}/ldap/login`;
4040
exportconstINVITE_LANDING_URL="/invite/:invitationId";
4141
exportconstORG_AUTH_LOGIN_URL=`/org/:orgId/auth/login`;
4242
exportconstORG_AUTH_REGISTER_URL=`/org/:orgId/auth/register`;
43-
exportconstORG_AUTH_FORGOT_PASSWORD_URL=`/org/:orgId/auth/forgot-password`;
44-
exportconstORG_AUTH_RESET_PASSWORD_URL=`/org/:orgId/auth/lost-password`;
4543

4644
exportconstAPPLICATION_VIEW_URL=(appId:string,viewMode:AppViewMode)=>
4745
`${ALL_APPLICATIONS_URL}/${appId}/${viewMode}`;

‎viewer/packages/lowcoder/src/pages/userAuth/formLogin.tsx‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { UserConnectionSource } from "@lowcoder-ee/constants/userConstants";
1515
import{trans}from"i18n";
1616
import{AuthContext,useAuthSubmit}from"pages/userAuth/authUtils";
1717
import{ThirdPartyAuth}from"pages/userAuth/thirdParty/thirdPartyAuth";
18-
import{AUTH_FORGOT_PASSWORD_URL,AUTH_REGISTER_URL,ORG_AUTH_FORGOT_PASSWORD_URL,ORG_AUTH_REGISTER_URL}from"constants/routesURL";
18+
import{AUTH_FORGOT_PASSWORD_URL,AUTH_REGISTER_URL,ORG_AUTH_REGISTER_URL}from"constants/routesURL";
1919
import{Link,useLocation,useParams}from"react-router-dom";
2020
import{Divider}from"antd";
2121
importFlexfrom"antd/es/flex";
@@ -79,17 +79,6 @@ export default function FormLogin(props: FormLoginProps) {
7979
onChange={(value)=>setPassword(value)}
8080
valueCheck={()=>[true,""]}
8181
/>
82-
<Flexjustify="end"style={{margin:'10px 0'}}>
83-
<Linkto={{
84-
pathname:orgId
85-
?ORG_AUTH_FORGOT_PASSWORD_URL.replace(':orgId',orgId)
86-
:AUTH_FORGOT_PASSWORD_URL,
87-
state:location.state
88-
}}
89-
>
90-
{`${trans("userAuth.forgotPassword")}?`}
91-
</Link>
92-
</Flex>
9382
<ConfirmButtonloading={loading}disabled={!account||!password}onClick={onSubmit}>
9483
{trans("userAuth.login")}
9584
</ConfirmButton>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp