]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.h
Fix email.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_auth_by.h
index d36ca1c446e325acbb71e1b0dbfae4bfc05da0ee..46e6ad100d4b0b8db179dd86d7593593d2eec39b 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 /*
- *    Author : Maxim Mamontov <faust@stargazer.dp.ua>
+ *    Author : Maksym Mamontov <stg@madf.info>
  */
 
 #ifndef __STG_PARSER_AUTH_BY_H__
@@ -23,6 +23,8 @@
 
 #include "parser.h"
 
+#include "stg/common.h"
+
 #include <string>
 
 class ADMIN;
@@ -39,10 +41,10 @@ class AUTH_BY : public BASE_PARSER
         class FACTORY : public BASE_PARSER::FACTORY
         {
             public:
-                FACTORY(const USERS & users) : m_users(users) {}
+                explicit FACTORY(const USERS & users) : m_users(users) {}
                 virtual BASE_PARSER * create(const ADMIN & admin) { return new AUTH_BY(admin, m_users); }
                 static void Register(REGISTRY & registry, const USERS & users)
-                { registry[tag] = new FACTORY(users); }
+                { registry[ToLower(tag)] = new FACTORY(users); }
             private:
                 const USERS & m_users;
         };