src/Auth.php
public function isPasswordResetEnabled() {
		if ($this->isLoggedIn()) {
			try {
				$enabled = $this->db->selectValue(
					'SELECT resettable FROM ' . $this->makeTableName('users') . ' WHERE id = ?',
					[ $this->getUserId() ]
				);

				return (int) $enabled === 1;
			}
			catch (Error $e) {
				throw new DatabaseError($e->getMessage());
			}
		}
		else {
			throw new NotLoggedInException();
		}
	}
public function isPasswordResetEnabled() {
		if ($this->isLoggedIn()) {
			try {
				$enabled = $this->db->selectValue(
					'SELECT resettable FROM ' . $this->makeTableName('users') . ' WHERE id = ?',
					[ $this->getUserId() ]
				);

				return (int) $enabled === 1;
			}
			catch (Error $e) {
				throw new DatabaseError($e->getMessage());
			}
		}
		else {
			throw new NotLoggedInException();
		}
	}
public function isPasswordResetEnabled ( ) { if ( $ this -> isLoggedIn ( ) ) { try { $ enabled = $ this -> db -> selectValue ( 'SELECT resettable FROM ' . $ this -> makeTableName ( 'users' ) . ' WHERE id = ?' , [ $ this -> getUserId ( ) ] ) ; return ( int ) $ enabled === 1 ; } catch ( Error $ e ) { throw new DatabaseError ( $ e -> getMessage ( ) ) ; } } else { throw new NotLoggedInException ( ) ; } }
Returns whether password resets are permitted for the account of the currently signed-in user

@return bool
@throws NotLoggedInException if the user is not currently signed in
@throws AuthError if an internal problem occurred (do *not* catch)
Returns whether password resets are permitted for the account of the currently signed - in user