phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/class.base.php, 1.1.1.1.2.34


From: nomail
Subject: [Phpgroupware-cvs] api/class.base.php, 1.1.1.1.2.34
Date: Tue, 6 Jul 2004 09:20:17 +0200

Update of /api
Modified Files:
        Branch: proposal-branch
          class.base.php

date: 2004/07/06 07:20:17;  author: jengo;  state: Exp;  lines: +12 -1

Log Message:
- Changing a password now updates the last password change field
- The "home" page now checks for your last password change
=====================================================================
Index: api/class.base.php
diff -u api/class.base.php:1.1.1.1.2.33 api/class.base.php:1.1.1.1.2.34
--- api/class.base.php:1.1.1.1.2.33     Mon Jun 28 21:40:57 2004
+++ api/class.base.php  Tue Jul  6 07:20:17 2004
@@ -137,6 +137,17 @@
                */
                function start()
                {
+                       $last_pwd_change = 
execMethod('api.auth.last_password_change');
+                       if ($last_pwd_change < time() - ((60 * 60 * 24) * 30) 
&& ! is_bool($last_pwd_change))
+                       {
+                               $GLOBALS['msgbox']->add(lang('Its been more 
then %d days since your last password change, please update it 
now',30),'notice');
+                       }
+
+                       if (! $last_pwd_change)
+                       {
+                               $GLOBALS['msgbox']->add(lang('Your password has 
not been changed since your account was created, you need to do this 
now'),'warning');
+                       }
+
                        $result['text']   = 'This is where the home page will 
get its data and be loaded.';
 //                     $result['inputs'] = func_get_args();
                        $GLOBALS['phpgw']->add_xsl('api.start');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]