]> andersk Git - moira.git/commitdiff
Display URL for appropriate webmail service (OWA vs webmail.mit.edu)
authorzacheiss <zacheiss>
Fri, 29 May 2009 15:52:15 +0000 (15:52 +0000)
committerzacheiss <zacheiss>
Fri, 29 May 2009 15:52:15 +0000 (15:52 +0000)
based on whether the user is EXCHANGE or not.

reg_svr/errors
reg_svr/reg_svr.pc

index 2dfd78dbd86646760fbd1cc81ba67b366ea4ea1c..12141d3508ae78488e08c33d15e2ba28f64946ea 100644 (file)
@@ -92,6 +92,13 @@ Your account has been registered and will become active later tonight.
 You should be able to log in by tomorrow morning using your Athena
 username (%s) and the password you chose.
 
+MIT's central email service is in transition.
+
+Please note: To access your email account via a web browser (Firefox, 
+Internet Explorer, Safari), please use:
+
+%s
+
 Welcome to Athena!
 # 21 BAD_PIN
 The PIN you typed was incorrect. Please make sure you typed it correctly.
index 1016e18649431f7594cfcf918e4271890f1183f6..7bdb69711f15aa9004e83cdde1c04d0015b8a369 100644 (file)
@@ -716,6 +716,7 @@ void PSWD(reg_client *rc, int argc, char **argv)
   char *password = argv[0], *p;
   EXEC SQL BEGIN DECLARE SECTION;
   char *login = rc->username;
+  char potype[USERS_POTYPE_SIZE];
   EXEC SQL END DECLARE SECTION;
 
   if (!rc->username || rc->id || argc != 1)
@@ -780,7 +781,11 @@ void PSWD(reg_client *rc, int argc, char **argv)
     EXEC SQL UPDATE users SET status = 1 WHERE login = :login;
   EXEC SQL COMMIT;
 
-  reply(rc, DONE, "INIT", "c", NULL, rc->username);
+  EXEC SQL SELECT potype INTO :potype FROM users WHERE login = :login;
+  if (!strcmp(potype, "EXCHANGE"))
+    reply(rc, DONE, "INIT", "c", NULL, rc->username, "http://owa.mit.edu");
+  else
+    reply(rc, DONE, "INIT", "c", NULL, rc->username, "http://webmail.mit.edu");
 }
 
 void QUIT(reg_client *rc, int argc, char **argv)
This page took 0.048298 seconds and 5 git commands to generate.