« blib/lib/Lemonldap/NG/Portal/Lib/OIDCPlugin.pm
↑ Summary
blib/lib/Lemonldap/NG/Portal/Password/Null.pm »
| 1 | package Lemonldap::NG::Portal::Password::Demo; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Mouse; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Lemonldap::NG::Portal::Main::Constants qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | PE_ERROR | ||
| 7 | PE_PASSWORD_OK | ||
| 8 | 1 | ); | |
| 9 | |||
| 10 | 1 | extends 'Lemonldap::NG::Portal::Password::Base'; | |
| 11 | |||
| 12 | 1 | our $VERSION = '2.0.16'; | |
| 13 | |||
| 14 | 5 | ▶ | sub init { |
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | 5 | my ($self) = @_; | |
| 16 | 5 | return $self->SUPER::init; | |
| 17 | } | ||
| 18 | |||
| 19 | 0 | ▶ | sub confirm { |
|
Subroutine
confirm: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | 0 | my ( $self, $req, $pwd ) = @_; | |
| 21 | 0 | return ( $pwd eq $req->{sessionInfo}->{uid} ); | |
| 22 | } | ||
| 23 | |||
| 24 | 0 | ▶ | sub modifyPassword { |
|
Subroutine
modifyPassword: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 25 | |||
| 26 | # Nothing to do here, all new passwords are accepted | ||
| 27 | 0 | return PE_PASSWORD_OK; | |
| 28 | } | ||
| 29 | |||
| 30 | 1 | 1; | |