get_user_passkey()

This commit is contained in:
xiaomlove
2024-10-10 03:05:34 +08:00
parent 9fec1a7ede
commit 24936277db
3 changed files with 36 additions and 11 deletions

View File

@@ -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) {