Differences
This shows you the differences between two versions of the page.
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:core:reset_password_perform [23/01/2013 08:43] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:core:reset_password_perform [29/11/2013 13:31] (current) |
{{indexmenu_n>17}} | {{indexmenu_n>17}} |
====== Смена пароля ====== | ====== Password reset ====== |
Чтобы закончить процедуру смены пароля, нужно использовать команду **core/reset_password_perform**: | To finish the procedure of changing password, use the command **core/reset_password_perform**: |
<code javascript> | <code javascript> |
svc=core/reset_password_perform¶ms={"user":<text>, | svc=core/reset_password_perform¶ms={"user":<text>, |
</code> | </code> |
| |
===== Параметры ===== | ===== Parameters ===== |
После выполнения команды [[reset_password_request]] пользователю будет отправлено письмо, содержащее ссылку, для подтверждения смены пароля. Эта ссылка будет содержать URL, указанный в запросе на смену пароля и еще 2 параметра: | After executing [[reset_password_request|reset_password_request]], an e-mail with link will be sent to the user. The link will lead to the URL indicated in the request and will contain two more parameters needed to finalize password reset: |
| |
^ Название ^ Описание ^ | ^ Name ^ Description ^ |
| user | имя пользователя | | | user | user name | |
| code | код, сгенерированный после выполнения запроса на изменение пароля и отправленный пользователю по e-mail | | | code | code generated by reset_password_request and sent to the user by e-mail | |
| |
===== Возвращаемый результат ===== | ===== Response ===== |
| |
<code=javascript> | <code=javascript> |
{ | { |
"newPassword":<text> /* новый пароль */ | "newPassword":<text> /* new password */ |
} | } |
</code> | </code> |