MCPcopy Create free account
hub / github.com/error311/FileRise / fr_local_user_exists

Function fr_local_user_exists

config/config.php:357–365  ·  view source on GitHub ↗
($username)

Source from the content-addressed store, hash-verified

355}
356
357function fr_local_user_exists($username): bool
358{
359 $username = trim((string)$username);
360 if ($username === '') {
361 return false;
362 }
363
364 return \FileRise\Domain\UserModel::getUserRole($username) !== null;
365}
366
367function fr_forget_authenticated_user(bool $clearRememberCookie = false): void
368{

Callers 1

config.phpFile · 0.85

Calls 1

getUserRoleMethod · 0.45

Tested by

no test coverage detected