mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
get_user_passkey()
This commit is contained in:
@@ -788,6 +788,15 @@ function get_user_id()
|
||||
return auth()->user()->id ?? 0;
|
||||
}
|
||||
|
||||
function get_user_passkey()
|
||||
{
|
||||
if (IN_NEXUS) {
|
||||
global $CURUSER;
|
||||
return $CURUSER["passkey"] ?? "";
|
||||
}
|
||||
return auth()->user()->passkey ?? "";
|
||||
}
|
||||
|
||||
function get_pure_username()
|
||||
{
|
||||
if (IN_NEXUS) {
|
||||
|
||||
Reference in New Issue
Block a user