From fc0342c3035e1c50f6ca8dcab9ed6bddf8ab5c0e Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Tue, 18 Mar 2008 00:08:39 +0100 Subject: [PATCH] Advertises GApps real name change in 'nom d'usage' validation email for active Google Apps users. Signed-off-by: Vincent Zanotti --- include/validations/nomusage.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/validations/nomusage.inc.php b/include/validations/nomusage.inc.php index c3ff4bf..26181b6 100644 --- a/include/validations/nomusage.inc.php +++ b/include/validations/nomusage.inc.php @@ -92,6 +92,13 @@ class UsageReq extends Validate if ($this->nom_usage) { $res .= "\n\n Les alias {$this->alias}@{$globals->mail->domain} et @{$globals->mail->domain2} sont maintenant à ta disposition !"; } + if ($globals->mailstorage->googleapps_domain) { + require_once 'googleapps.inc.php'; + $account = new GoogleAppsAccount(S::v('uid'), S::v('forlife')); + if ($account->active()) { + $res .= "\n\n Si tu utilises Google Apps, tu peux changer ton nom d'usage sur https://mail.google.com/a/polytechnique.org/#settings/accounts"; + } + } return $res; } else { return " La demande de changement de nom d'usage que tu avais faite a été refusée."; -- 2.1.4