src/snac/server/database/DBUser.php
/**
     * Write the password
     *
     * This overwrites the password. Use this to initially set the password, as well as to set a new password.
     * In a world where logins are managed via OAuth, we may not have or use passwords. In that case,
     * passwords can be ignored.
     *
     * The password must be hashed.
     *
     * @param \snac\data\User $user A user object
     *
     * @param string $passwd A hashed password
     *
     * @return boolean True on success, false for any type of failure.
     *
     */
Write the password
This overwrites the password. Use this to initially set the password, as well as to set a new password.
In a world where logins are managed via OAuth, we may not have or use passwords. In that case,
passwords can be ignored.

The password must be hashed.

@param \snac\data\User $user A user object

@param string $passwd A hashed password

@return boolean True on success, false for any type of failure.
Write the password This overwrites the password . Use this to initially set the password as well as to set a new password . In a world where logins are managed via OAuth we may not have or use passwords . In that case passwords can be ignored . The password must be hashed . @param \ snac \ data \ User $user A user object @param string $passwd A hashed password @return boolean True on success false for any type of failure .
public function writePassword($user, $passwd)
    {
        if (! $user || ! $user->getUserID())
        {
            return false;
        }
        $this->sql->updatePassword($user->getUserID(),
                                   $passwd);
        return true;
    }
public function writePassword ( $ user , $ passwd ) { if ( ! $ user || ! $ user -> getUserID ( ) ) { return false ; } $ this -> sql -> updatePassword ( $ user -> getUserID ( ) , $ passwd ) ; return true ; }
Write the password
 This overwrites the password.
Write the password This overwrites the password .