Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: disable password changing and forgot password

Ammar Ahmedb3406be1ad47
diff --git a/apps/mobile/app/components/auth/login.tsx b/apps/mobile/app/components/auth/login.tsx
index 58ab43972..a9f869267 100644
--- a/apps/mobile/app/components/auth/login.tsx
+++ b/apps/mobile/app/components/auth/login.tsx
@@ -25,7 +25,7 @@ import { TouchableOpacity, View, useWindowDimensions } from "react-native";
import { SheetManager } from "react-native-actions-sheet";
import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
import { DDS } from "../../services/device-detection";
-import { eSendEvent } from "../../services/event-manager";
+import { eSendEvent, ToastManager } from "../../services/event-manager";
import Navigation from "../../services/navigation";
import PremiumService from "../../services/premium";
import SettingsService from "../../services/settings";
@@ -257,8 +257,13 @@ export const Login = ({
paddingHorizontal: 0
}}
onPress={() => {
- if (loading || !email.current) return;
- SheetManager.show("forgotpassword_sheet");
+ ToastManager.show({
+ type: "info",
+ message:
+ "Password changing has been disabled temporarily to address some issues faced by users. It will be enabled again once the issues have resolved."
+ });
+ // if (loading || !email.current) return;
+ // SheetManager.show("forgotpassword_sheet");
}}
textStyle={{
textDecorationLine: "underline"
diff --git a/apps/mobile/app/screens/settings/settings-data.tsx b/apps/mobile/app/screens/settings/settings-data.tsx
index 8acbe9601..7a8fa9c08 100644
--- a/apps/mobile/app/screens/settings/settings-data.tsx
+++ b/apps/mobile/app/screens/settings/settings-data.tsx
@@ -286,10 +286,17 @@ export const settingsGroups: SettingSection[] = [
{
id: "change-password",
name: strings.changePassword(),
- type: "screen",
+ // type: "screen",
description: strings.changePasswordDesc(),
- component: "change-password",
- icon: "form-textbox-password"
+ // component: "change-password",
+ icon: "form-textbox-password",
+ modifer: () => {
+ ToastManager.show({
+ type: "info",
+ message:
+ "Password changing has been disabled temporarily to address some issues faced by users. It will be enabled again once the issues have resolved."
+ });
+ }
},
{
id: "change-email",