X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fcokebank_basic%2Fmain.c;h=62d49b85d1d7e313b76905c6cb9dafec74943e3f;hb=dce0ef0f3c15f9e38e57d4a14c904c339affac4e;hp=96888c0b6c604d1c0b79f8eb6e4baa9862f8cc01;hpb=99cf95b138082d1c02705682ad0dfd8b67a27ac4;p=tpg%2Fopendispense2.git diff --git a/src/cokebank_basic/main.c b/src/cokebank_basic/main.c index 96888c0..62d49b8 100644 --- a/src/cokebank_basic/main.c +++ b/src/cokebank_basic/main.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "common.h" #define HACK_TPG_NOAUTH 1 @@ -132,16 +133,3 @@ int GetUserID(const char *Username) return ret; } -/** - * \brief Authenticate a user - * \return User ID, or -1 if authentication failed - */ -int GetUserAuth(const char *Username, const char *Password) -{ - #if HACK_TPG_NOAUTH - if( strcmp(Username, "tpg") == 0 ) - return GetUserID("tpg"); - #endif - return -1; -} -