Skip to content

Commit

Permalink
feat: première connexion ou mot de passe oublié (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored Oct 9, 2023
1 parent ab93c49 commit bf96b93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dashboard/src/scenes/auth/forgot.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const View = () => {
Si l'adresse de courriel que vous avez saisie correspond effectivement à un compte utilisateur(rice) MANO, alors un lien pour réinitialiser
le mot de passe de ce compte a été envoyé à l'instant à cette adresse.
</p>
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs">Version: {packageInfo.version}</p>
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs tw-text-gray-500">Version&nbsp;: {packageInfo.version}</p>
</div>
);
}
Expand Down Expand Up @@ -87,7 +87,7 @@ const View = () => {
onClick={handleSubmit}
className="tw-m-auto !tw-mt-8 !tw-w-56 tw-font-[Helvetica] !tw-text-base tw-font-medium"
/>
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs">Version: {packageInfo.version}</p>
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs tw-text-gray-500">Version&nbsp;: {packageInfo.version}</p>
</form>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/scenes/auth/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Reset = () => {
withCurrentPassword={false}
centerButton
/>
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs">Version: {packageInfo.version}</p>
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs tw-text-gray-500">Version&nbsp;: {packageInfo.version}</p>
</div>
);
};
Expand Down
10 changes: 4 additions & 6 deletions dashboard/src/scenes/auth/signin.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ const SignIn = () => {

return (
<div className="tw-mx-10 tw-my-0 tw-w-full tw-max-w-lg tw-overflow-y-auto tw-overflow-x-hidden tw-rounded-lg tw-bg-white tw-px-7 tw-pt-10 tw-pb-2 tw-text-black sm:tw-drop-shadow-2xl">
<h1 className="tw-mb-6 tw-text-center tw-text-3xl tw-font-bold">
{userName ? `Bienvenue ${userName?.split(' ')?.[0]}\u00a0!` : 'Bienvenue\u00a0!'}
</h1>
<h1 className="tw-mb-6 tw-text-center tw-text-3xl tw-font-bold">{userName ? `Bienvenue ${userName?.split(' ')?.[0]}` : 'Bienvenue'}&nbsp;!</h1>
<form onSubmit={handleSubmit} method="POST">
{!authViaCookie && (
<>
Expand Down Expand Up @@ -223,8 +221,8 @@ const SignIn = () => {
</div>
{!!showErrors && <p className="tw-text-xs tw-text-red-500">{signinFormErrors.password}</p>}
</div>
<div className="tw-mb-5 -tw-mt-5 tw-text-right tw-text-xs">
<Link to="/auth/forgot">Mot de passe oublié ?</Link>
<div className="tw-mb-5 -tw-mt-5 tw-text-right tw-text-sm">
<Link to="/auth/forgot">Première connexion ou mot de passe oublié&nbsp;?</Link>
</div>
</>
)}
Expand Down Expand Up @@ -265,7 +263,7 @@ const SignIn = () => {
className="tw-m-auto tw-font-[Helvetica] !tw-text-base !tw-font-normal"
/>
)}
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs">Version: {packageInfo.version}</p>
<p className="tw-mx-auto tw-mt-5 tw-mb-0 tw-block tw-text-center tw-text-xs tw-text-gray-500">Version&nbsp;: {packageInfo.version}</p>
</form>
</div>
);
Expand Down

0 comments on commit bf96b93

Please sign in to comment.