diff --git a/src/app/navigation/AccountNavigator.js b/src/app/navigation/AccountNavigator.js
index a330fec..20a1c8e 100644
--- a/src/app/navigation/AccountNavigator.js
+++ b/src/app/navigation/AccountNavigator.js
@@ -9,6 +9,8 @@ import UpdatePassword from "../screens/UpdatePassword";
import EditUserData from "../screens/EditUserData";
import ActivateInstitutionCode from "../screens/ActivateInstitutionCode";
import ActivateInstitutionShowCode from "../screens/ActivateInstitutionShowCode";
+import PasswordRecovery from "../screens/PasswordRecoveryScreen";
+import PasswordRecoveryChangePswd from "../screens/PasswordRecoveryChangePswdScreen";
const Stack = createStackNavigator();
@@ -78,15 +80,20 @@ const AccountNavigator = () => (
}}
/>
+
+
+
+
(
{
+ props.navigation.navigate("PasswordRecovery", {user: user});
+ },
+ },
{
icon: "account",
show: user.pluviometer != undefined,
@@ -160,6 +169,7 @@ function AccountScreen(props) {
setShowLog(true);
},
},
+
{
icon: "login",
show: !isRegistered,
diff --git a/src/app/screens/PasswordRecoveryScreen.js b/src/app/screens/PasswordRecoveryScreen.js
index aef112d..ff27596 100644
--- a/src/app/screens/PasswordRecoveryScreen.js
+++ b/src/app/screens/PasswordRecoveryScreen.js
@@ -65,7 +65,10 @@ const validationSchema = Yup.object().shape({
.max(255),
});
-export default function PasswordRecovery({ navigation }) {
+export default function PasswordRecovery({ navigation, route }) {
+ const user = route.params.user;
+ console.log(user)
+
const [showLoading, setShowLoading] = useState(false);
const [confirmatioModalData, setConfirmatioModalData] = useState({
show: false,
@@ -142,7 +145,7 @@ export default function PasswordRecovery({ navigation }) {