]> andersk Git - moira.git/commitdiff
Handle the case of a user using a PIN for preauthentication (instead of
authorzacheiss <zacheiss>
Fri, 2 Aug 2002 10:36:36 +0000 (10:36 +0000)
committerzacheiss <zacheiss>
Fri, 2 Aug 2002 10:36:36 +0000 (10:36 +0000)
six words) who has a preassigned username, and call register_user()
before we end up in PSWD().

reg_svr/reg_svr.pc

index 0dd07b749629767d1cde3b3c6de4754708a94e28..a293c3b9ab9762e523f81730d2498351b721f15c 100644 (file)
@@ -517,7 +517,10 @@ void SPIN(reg_client *rc, int argc, char **argv)
   if (!rc->username)
     reply(rc, NO_MESSAGE, "GETL", "c", rc->suggestions);
   else
-    reply(rc, FORCED_USERNAME, "GETP", "c", NULL, rc->username);
+    {
+      register_user(rc->uid, rc->username);
+      reply(rc, FORCED_USERNAME, "GETP", "c", NULL, rc->username);
+    }
 }
 
 void LOGN(reg_client *rc, int argc, char **argv)
This page took 0.930361 seconds and 5 git commands to generate.