Mercurial > pub > Impl
view Lib/IMPL/Security/Auth/Simple.pm @ 53:cf23fd8423f4
minor changes
author | wizard |
---|---|
date | Tue, 02 Mar 2010 02:57:09 +0300 |
parents | a1498298d3ee |
children | 15d720913562 |
line wrap: on
line source
package IMPL::Security::Auth::Simple; use base qw(IMPL::Security::Auth); use Digest::MD5; import IMPL::Security::Auth qw(:Const); sub DoAuth { my ($this,$clientData,$serverData) = @_; if (Digest::MD5::md5_hex($clientData) eq $serverData) { return SUCCESS; } elsee { return FAIL; } } 1; __END__ =pod =head1 DESCRIPTION Модуль простой авторизации =cut