Nextcloud PHP API (master)

IPasswordHashBackend

Tags
since
30.0.0

Table of Contents

Methods

getPasswordHash()  : string|null
setPasswordHash()  : bool

Methods

getPasswordHash()

public getPasswordHash(string $userId) : string|null
Parameters
$userId : string
Tags
since
30.0.0
Return values
string|null

the password hash hashed by \OCP\Security\IHasher::hash()

setPasswordHash()

public setPasswordHash(string $userId, string $passwordHash) : bool
Parameters
$userId : string
$passwordHash : string

the password hash hashed by \OCP\Security\IHasher::hash()

Tags
throws
InvalidArgumentException

when $passwordHash is not a valid hash

since
30.0.0
Return values
bool

        
On this page

Search results