Framework update.

This commit is contained in:
stephb9959
2021-11-12 23:36:20 -08:00
parent c85f22bfb5
commit ac74dffd0c
3 changed files with 17 additions and 43 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenWifi {
if(!Authenticated) {
std::string Frame{IncomingFrame.begin()};
auto Tokens = Utils::Split(Frame,':');
if(Tokens.size()==2 && AuthClient()->IsTokenAuthorized(Tokens[1], UserInfo_)) {
if(Tokens.size()==2 && AuthClient()->IsAuthorized(Tokens[1], UserInfo_)) {
Authenticated=true;
std::string S{"Welcome! Bienvenue! Bienvenidos!"};
WS.sendFrame(S.c_str(),S.size());