lemonldap-ng/lemonldap-ng-portal/t/vrfyOTP.pl

11 lines
185 B
Perl
Raw Permalink Normal View History

2018-09-05 21:13:39 +02:00
#!/usr/bin/perl
use strict;
use warnings;
2018-10-12 10:04:03 +02:00
my ( $swt1, $user, $swt2, $code ) = @ARGV;
2018-09-05 21:13:39 +02:00
2018-10-12 10:04:03 +02:00
exit !($swt1 eq '-uid'
&& $user eq 'dwho'
&& $swt2 eq '-code'
&& $code eq '123456' );