box.schema.user.passwd() | Tarantool

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).
Parameters:
  • username (string) – a username
  • password (string) – a new password

Example:

box.schema.user.passwd('testuser', 'foobar')

See also: Managing users.

Found what you were looking for?
Feedback