projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf8dc89
)
Pman/Login.php
wip_alan_T5673_Admin_password_reset_shows_error
author
Alan Knowles
<alan@roojs.com>
Fri, 18 Jan 2019 07:08:26 +0000
(15:08 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 18 Jan 2019 07:08:26 +0000
(15:08 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
623e01c
..
9329349
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-406,9
+406,11
@@
class Pman_Login extends Pman
// sort out sender.
$cm = DB_DataObject::factory('core_email');
if (!$cm->get('name', 'ADMIN_PASSWORD_RESET')) {
// sort out sender.
$cm = DB_DataObject::factory('core_email');
if (!$cm->get('name', 'ADMIN_PASSWORD_RESET')) {
- $this->jerr("no template ADMIN_PASSWORD_RESET exists - please run importer ");
-
+ $this->jerr("no template Admin password reset (ADMIN_PASSWORD_RESET) exists - please run importer ");
}
}
+ if (!$cm->active) {
+ $this->jerr("template for Admin password reset has been disabled");
+ }
/*
$g = DB_DAtaObject::factory('Groups');
/*
$g = DB_DAtaObject::factory('Groups');