crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

webinterface_auth.cc (321B)


      1 #include "config"
      2 
      3 void Config::webinterface_auth(string const &s) {
      4     // Make sure there is a ':' delimiter in the parameter
      5     if (s.length() > 0 && s.find_first_of(':') == string::npos)
      6 	throw Error("Bad web interface authentication parameter, "
      7 		    "format must be username:password");
      8 
      9     web_auth = s;
     10 }
     11