mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-19 03:56:18 -04:00
Fix another user as array use
This commit is contained in:
@@ -160,7 +160,7 @@ class HostController extends AppController {
|
||||
if ( $token ) {
|
||||
// If we have a token, we need to derive username from there
|
||||
$ret = validateToken($token, 'refresh', true);
|
||||
$username = $ret[0]['Username'];
|
||||
$username = $ret[0]->Username();
|
||||
}
|
||||
|
||||
ZM\Info("Creating token for \"$username\"");
|
||||
|
||||
Reference in New Issue
Block a user