MCPcopy Create free account
hub / github.com/SmingHub/Sming / validateUser

Method validateUser

Sming/Components/Network/src/Network/Ftp/FtpServer.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25IFS::UserRole FtpServer::validateUser(const char* login, const char* pass)
26{
27 debug_d("validateUser: %s %s", login, pass);
28 auto& user = static_cast<const UserList&>(users)[login];
29 return (user.password == pass) ? user.role : IFS::UserRole::None;
30}
31
32bool FtpServer::onCommand(String cmd, [[maybe_unused]] String data, FtpServerConnection& connection)
33{

Callers 1

onCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected