Hi,
wie kann ich das Passwort eines Nutzer zurücksetzen? Der Nutzer hat es vergessen…
Dieter
Hi,
ich frage nochmal an, gibt es keine Möglichkeit?
Gruß Dieter
Hi,
hat keiner Lust darauf zu antworten?
Gruß Dieter
Hallo Dieter,
das Problem ist bekannt und wir arbeiten an einer Lösung dazu, die ist bislang aber noch nicht umgesetzt. Bis wann das der Fall sein wird, kann ich leider nicht sagen.
Grüße
Daniela
Hallo Dieter,
wir haben jetzt einen Task in Arbeit, der das zurücksetzen eines Passwortes ermöglicht:
opened 01:20PM - 13 Jul 18 UTC
closed 08:01AM - 06 Sep 18 UTC
type:enhancement
branch:master
branch:release
### Is this a bug or feature request?
FR
backend task: https://github.com/meta… sfresh/metasfresh-webui-api/issues/1006
### What is the current behavior?
-
#### Which are the steps to reproduce?
### What is the expected or desired behavior?
Implement forgot password functionality as follows.
#### Login screen: we need the Forgot password link

#### Page: Send reset password instructions

In this screen user shall enter his/her email address and then press on that button to request an email with reset password link.
When user presses the button:
* frontend shall use following API to send the password reset email: http://w101.metasfresh.com:8081/swagger-ui.html#!/login-rest-controller/resetPasswordRequestUsingPOST
* if the endpoint returns 200 OK then frontend shall hide the email field & button and it shall display the `{{webui.forgotPassword.resetCodeSent.caption}}` message.
* if the endpoint returns an error, the error shall be displayed to user (e.g. email not found)
#### Page: Set the new password
In previous step, user got an email with password reset instructions.
There he/she got the password reset link which looks like:
https://w101.metasfresh.com:8443/resetPassword?token=ecde7596-7e29-4f85-81f1-502b7f84b1f7
Remark:
* the frontend shall render the password reset page on "/resetPassword" path
* the password reset token is provided as parameter
Using that token the frontend shall render the password reset page:

To fetch user's full name and email please use: http://w101.metasfresh.com:8081/swagger-ui.html#!/login-rest-controller/getResetPasswordInfoUsingGET
!!! Don't show the user eMail adress on the password change screen !!!
To fetch user's avatar please use: http://w101.metasfresh.com:8081/swagger-ui.html#!/login-rest-controller/getUserAvatarUsingGET which will return the avatar picture if available.
After user is filling the new password and he/she is retyping the new password, frontend shall validate if the new password and retyped password match. If not, it shall display the `{{webui.forgotPassword.error.retypedNewPasswordNotMatch}}` message and the button shall not be active.
If everything is OK, frontend shall call http://w101.metasfresh.com:8081/swagger-ui.html#!/login-rest-controller/resetPasswordCompleteUsingPOST endpoint in order to reset the password.
That endpoint might return an error (e.g. password is not valid). That error shall be shown.
In case everything is OK, the user will be logged in and the endpoint will return EXACTLY the same as http://w101.metasfresh.com:8081/swagger-ui.html#!/login-rest-controller/authenticateUsingPOST .
Frontend shall work exactly the same as on login.
If the `loginComplete` property is `true` then user is logged in and the main page shall be displayed.
If the `loginComplete` property si `false` then the "pick role screen" shall be displayed.
NOTE: internally webui messages are prefixed with `webui.` but when we provide them to frontend we strip out the `webui.` prefix. When writing this concept I forgot about that, so that's why all the messages are prefixed with `webui.` (see http://w101.metasfresh.com:8081/rest/api/i18n/messages?filter=forgotPassword)
Grüße
Daniela
nebergd
September 10, 2018, 7:42am
6
Hi Daniela,
und gibt es einen möglichen Termin?
Gruß Dieter
Hallo Dieter,
das Feature war im vorletzten Release dabei: https://metasfresh.com/2018/08/31/release-5-72/
Grüße
Daniela
nebergd
September 11, 2018, 6:24am
8
Hi Daniela,
sorry peinlich…
Danke
Gruß Dieter
macht nichts, ich bin auch nicht immer 100% auf dem neuesten Stand, was in welchem Release drin ist / war.
Grüße
Daniela