Bug 22343: Prevent passing password to the UI
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
2577f1f683
commit
26cab84bd5
|
|
@ -123,6 +123,9 @@ elsif ( $op eq 'edit_save' ) {
|
|||
my $password = $input->param('smtp_password') || undef;
|
||||
my $debug = ( scalar $input->param('smtp_debug_mode') ) ? 1 : 0;
|
||||
|
||||
$password = undef
|
||||
if defined $password and $password eq '****';
|
||||
|
||||
try {
|
||||
$smtp_server->password( $password )
|
||||
if $password;
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ SMTP servers
|
|||
</li>
|
||||
<li>
|
||||
<label for="smtp_password">Password: </label>
|
||||
<input type="password" name="smtp_password" id="smtp_password" size="60" value="[%- smtp_server.password | html -%]"/>
|
||||
<input type="password" name="smtp_password" id="smtp_password" size="60" value="****"/>
|
||||
</li>
|
||||
<li>
|
||||
<label for="smtp_debug_mode">Debug mode: </label>
|
||||
|
|
|
|||
Loading…
Reference in New Issue