~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/lib/Foswiki/Configure/Checkers/Register/NeedVerification.pm

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# See bottom of file for license and copyright information
 
2
package Foswiki::Configure::Checkers::Register::NeedVerification;
 
3
 
 
4
use strict;
 
5
 
 
6
use Foswiki::Configure::Checker;
 
7
 
 
8
use base 'Foswiki::Configure::Checker';
 
9
 
 
10
sub check {
 
11
    my $this = shift;
 
12
 
 
13
    if ( $Foswiki::cfg{Register}{NeedVerification} and !$Foswiki::cfg{EnableEmail} )
 
14
    {
 
15
        return $this->WARN(
 
16
'Verification is enabled, but email is disabled. No verification emails will be sent. Either disable this option or enable email.'
 
17
        );
 
18
    }
 
19
    return '';
 
20
}
 
21
 
 
22
1;
 
23
__DATA__
 
24
#
 
25
# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
 
26
#
 
27
# Copyright (C) 2008 Foswiki Contributors. All Rights Reserved.
 
28
# Foswiki Contributors are listed in the AUTHORS file in the root
 
29
# of this distribution. NOTE: Please extend that file, not this notice.
 
30
#
 
31
# Additional copyrights apply to some or all of the code in this
 
32
# file as follows:
 
33
#
 
34
# Copyright (C) 2000-2006 TWiki Contributors. All Rights Reserved.
 
35
# TWiki Contributors are listed in the AUTHORS file in the root
 
36
# of this distribution. NOTE: Please extend that file, not this notice.
 
37
#
 
38
# This program is free software; you can redistribute it and/or
 
39
# modify it under the terms of the GNU General Public License
 
40
# as published by the Free Software Foundation; either version 2
 
41
# of the License, or (at your option) any later version. For
 
42
# more details read LICENSE in the root of this distribution.
 
43
#
 
44
# This program is distributed in the hope that it will be useful,
 
45
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
46
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
47
#
 
48
# As per the GPL, removal of this notice is prohibited.