Adds role 'Anonymous' to the user if it is not already present. Only admin can set admin account.

参数

参数名字 描述
id
必填

Validations:

  • Must be String

user
必填

Validations:

  • Must be a Hash

user[login]
选填

Validations:

  • Must be String

user[firstname]
选填 , 允许空值

Validations:

  • Must be String

user[lastname]
选填 , 允许空值

Validations:

  • Must be String

user[mail]
选填

Validations:

  • Must be String

user[admin]
选填

Is an admin account?

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

user[password]
选填

Validations:

  • Must be String