Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-12-03 19:21:50 +0300
committerBadlop <badlop@process-one.net>2010-12-03 19:26:10 +0300
commit548be4cf3df92b01244c1b21fb9daf506537d4fb (patch)
treea08b0db3456f01c64500bcb434e80165d0f9547d /examples
parent0e5b0b43fa6d85300dbb93cabeb32e3c11a88146 (diff)
Update example extauth script with tryregister, removeuser and removeuser3 (EJAB-641)
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/extauth/check_pass_null.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/extauth/check_pass_null.pl b/examples/extauth/check_pass_null.pl
index f15fe910b..cbf179202 100755
--- a/examples/extauth/check_pass_null.pl
+++ b/examples/extauth/check_pass_null.pl
@@ -42,6 +42,22 @@ while(1)
# password is null. Return 1 if the user $user\@$domain exitst.
$result = 1;
},last SWITCH;
+
+ $op eq 'tryregister' and do
+ {
+ $result = 1;
+ },last SWITCH;
+
+ $op eq 'removeuser' and do
+ {
+ # password is null. Return 1 if the user $user\@$domain exitst.
+ $result = 1;
+ },last SWITCH;
+
+ $op eq 'removeuser3' and do
+ {
+ $result = 1;
+ },last SWITCH;
};
my $out = pack "nn",2,$result ? 1 : 0;
syswrite STDOUT,$out;