1# Users bodies
2
3body password plaintext_password(text)
4# @brief Sets the plaintext password for the user to `text`
5# @param text the plain text version of the password
6#
7# **Note:** Don't use that unless you really have no choice
8#
9# **See also:** `hashed_password()`
10{
11    format => "plaintext";
12    data => $(text);
13}
14
15body password hashed_password(hash)
16# @brief Sets the hashed password for the user to `hash`
17# @param hash the hashed representation of the password
18#
19# The hashing method is up to the platform.
20#
21# **See also:** `plaintext_password()`
22{
23    format => "hash";
24    data => $(hash);
25}
26