spirit posteets tagged auth  [ Profile ]

Sort by: Date / Title /

  1. 11 years ago and saved by 1 other
    1. # credentials must be Base64 encoded. Two methods :
    2. printf 'username\0username\0password' | mmencode
    3. perl -MMIME::Base64 -e 'print encode_base64("username\0username\0password");'
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/180"></script>
  2. 11 years ago
    1. $status = '';
    2. if (isset($a) && ($a->getStatus() != 0)) {
    3.   switch ($a->getStatus()) {
    4.     case AUTH_WRONG_LOGIN : $status = "Login ou pass invalide"; break;
    5.     case AUTH_EXPIRED : $status = "Session expirée"; break;
    6.     case AUTH_IDLED : $status = "Inactivité trop longue"; break;
    7.     case AUTH_SECURITY_BREACH : $status = "Problème de securite"; break;
    8.     default : echo "Message";
    9.   }
    10. }
    11. echo $status;
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/5"></script>

First / Previous / Next / Last / Page 1 of 1 (2 posteets)