$user


User Properties

  • $user->id

    Numeric ID of this user

  • $user->name

    Get or set the user's login name.

  • $user->email

    Get or set email address for this user.

  • $user->pass

    The user's hashed password. Note that this returns a hashed version of the password, so it is not typically useful to get this property. However, it is useful to set this property if you want to change the password. When you change a password, it is assumed to be the non-hashed/non-encrypted version. ProcessWire will hash it automatically when the user is saved.

  • $user->roles

    Get roles this user has. Returns PageArray.