mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 11:41:44 +08:00
add method for add user
This commit is contained in:
@@ -161,6 +161,7 @@ inline void ShellSession::sendHead() {
|
||||
inline bool ShellSession::authUser(const string& user, const string& pwd) {
|
||||
auto it = g_mapUser.find(user);
|
||||
if (it == g_mapUser.end()) {
|
||||
//WarnL << user << " " << pwd;
|
||||
return false;
|
||||
}
|
||||
return it->second == pwd;
|
||||
|
||||
Reference in New Issue
Block a user