Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/include/sessionauth.global.class

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1305 by niro, Wed Feb 2 20:20:24 2011 UTC revision 1306 by niro, Sun Feb 6 23:46:42 2011 UTC
# Line 97  validate_auth() Line 97  validate_auth()
97   local passwdpass   local passwdpass
98    
99   # return 0 if ${valid_auth=yes} - user alread authenticated   # return 0 if ${valid_auth=yes} - user alread authenticated
100   validate_session && return 0   valid_session && return 0
101    
102   if [[ ! -f ${PASSWD} ]]   if [[ ! -f ${PASSWD} ]]
103   then   then
# Line 128  validate_auth() Line 128  validate_auth()
128   fi   fi
129  }  }
130    
131  validate_session()  valid_session()
132  {  {
133   if [[ ${valid_session} = yes ]]   if [[ ${valid_session} = yes ]]
134   then   then

Legend:
Removed from v.1305  
changed lines
  Added in v.1306