box.schema.user.passwd()
-
box.schema.user.
passwd
([username, ]password)¶ Sets a password for a currently logged in or a specified user:
- A currently logged-in user can change their password using
box.schema.user.passwd(password)
. - An administrator can change the password of another user with
box.schema.user.passwd(username, password)
.
Параметры: Пример:
box.schema.user.passwd('testuser', 'foobar')
See also: Managing users.
- A currently logged-in user can change their password using