projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 75817 - fixed contact password page to be more consistant with svc password page...
[freeside.git]
/
FS
/
FS
/
contact.pm
diff --git
a/FS/FS/contact.pm
b/FS/FS/contact.pm
index
a873fda
..
568d46f
100644
(file)
--- a/
FS/FS/contact.pm
+++ b/
FS/FS/contact.pm
@@
-577,6
+577,15
@@
sub replace {
}
}
}
}
+ if ( $self->get('password') ) {
+ my $error = $self->is_password_allowed($self->get('password'))
+ || $self->change_password($self->get('password'));
+ if ( $error ) {
+ $dbh->rollback if $oldAutoCommit;
+ return $error;
+ }
+ }
+
$dbh->commit or die $dbh->errstr if $oldAutoCommit;
'';
$dbh->commit or die $dbh->errstr if $oldAutoCommit;
'';
@@
-663,7
+672,7
@@
and replace methods.
sub check {
my $self = shift;
sub check {
my $self = shift;
- if ( $self->selfservice_access eq 'R' ) {
+ if ( $self->selfservice_access eq 'R'
|| $self->selfservice_access eq 'P'
) {
$self->selfservice_access('Y');
$self->_resend('Y');
}
$self->selfservice_access('Y');
$self->_resend('Y');
}
@@
-945,7
+954,7
@@
sub cgi_contact_fields {
my @contact_fields = qw(
classnum first last title comment emailaddress selfservice_access
my @contact_fields = qw(
classnum first last title comment emailaddress selfservice_access
- invoice_dest
+ invoice_dest
password
);
push @contact_fields, 'phonetypenum'. $_->phonetypenum
);
push @contact_fields, 'phonetypenum'. $_->phonetypenum