X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fauth.c;h=2e58a710a0d053d5d5d249f26d90d69ee41c3b4c;hb=b4ad306de9560ec731db113ed509a1172209c444;hp=16bd49d804525b35c7ad628059ae6ff0f6ef0ba8;hpb=0250352434c498910e3faac249ac01bcbdd4b98d;p=citadel.git diff --git a/webcit/auth.c b/webcit/auth.c index 16bd49d80..2e58a710a 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -6,6 +6,10 @@ #include "webcit.h" #include "webserver.h" +#include + + +void display_reg(int during_login); /* * Access level definitions. This is initialized from a function rather than a @@ -78,7 +82,7 @@ void display_login(char *mesg) svput("NEWUSER_BUTTON_POST", WCS_STRING, ""); } -#ifdef TECH_PREVIEW + if (serv_info.serv_supports_openid) { svprintf(HKEY("OFFER_OPENID_LOGIN"), WCS_STRING, "
" "" @@ -88,11 +92,12 @@ void display_login(char *mesg) , "Log in using OpenID" ); -#else + } + else { svput("OFFER_OPENID_LOGIN", WCS_STRING, ""); -#endif + } - do_template("login"); + do_template("login", NULL); wDumpContent(2); } @@ -119,6 +124,8 @@ void display_openid_login(char *mesg) svprintf(HKEY("LOGIN_INSTRUCTIONS"), WCS_STRING, _("