Project

General

Profile

Revision 8259

do not email a specific account reset URL so that the emails can be used in multiple UI contexts. https://projects.ecoinformatics.org/ecoinfo/issues/6066

View differences:

src/perl/ldapweb.cgi
874 874

  
875 875
    my $errorMessage = "";
876 876
    if ($recipient) {
877
    	
878
    	# use the appropriate link
879
		my $link = '/' . $context . '/cgi-bin/ldapweb.cgi?stage=changepass&cfg=' . $cfg;
880
		my $overrideURL;
881
	    $overrideURL = $skinProperties->getProperty("email.overrideURL");
882
	    debug("the overrideURL is " . $overrideURL);
883
	    if (defined($overrideURL) && !($overrideURL eq '')) {
884
	    	$link = $serverUrl . $overrideURL . $link;
885
	    } else {
886
	    	$link = $serverUrl . $link;
887
	    }
888 877
    
889 878
        my $mailhost = $properties->getProperty('email.mailhost');
890 879
        my $sender;
......
900 889
        Subject: Your Account Password Reset
901 890
        
902 891
        Somebody (hopefully you) requested that your account password be reset.  
903
        Your temporary password is below. Please update your password to 
904
        something permanent by visiting the following URL:
892
        Your temporary password is below. Please change it as soon as possible 
893
        at: $contextUrl.
905 894

  
906
        $link
907

  
908 895
            Username: $username
909 896
        Organization: $org
910 897
        New Password: $newPass

Also available in: Unified diff