Skip to content

Commit

Permalink
Merge pull request #689 from andrey-utkin/fix-web-user-mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
curtishall authored Sep 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents dc80dea + 1feb9f4 commit 4ec4e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/lib/lib.php
Original file line number Diff line number Diff line change
@@ -343,7 +343,7 @@ private function getInfo($parameter, $value){
$this->info['access_ptz_list'] = (isset($this->info['access_ptz_list']) ? explode(',', $this->info['access_ptz_list']) : Array());
$this->info['access_device_list'] = (isset($this->info['access_device_list']) ? explode(',', $this->info['access_device_list']) : Array());
}
private function checkUserData($data, $new=false){
private static function checkUserData($data, $new=false){
if (empty($data['username'])) { return NO_USERNAME; };
if (empty($data['email'])) { return NO_EMAIL; };
if (empty($data['password'])) { return NO_PASS; };

0 comments on commit 4ec4e8a

Please sign in to comment.