mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
handle when password field not in UI
This commit is contained in:
@@ -971,7 +971,7 @@ class User extends CI_Controller {
|
||||
$post_data = $this->input->post();
|
||||
if (!empty($query->row()->external_account)) {
|
||||
$post_data['user_name'] = $query->row()->user_name;
|
||||
if (!($this->config->item('auth_header_allow_direct_login') ?? true)) {
|
||||
if (!($this->config->item('auth_header_allow_direct_login', 'sso') ?? true)) {
|
||||
$post_data['user_password'] = $this->pwd_placeholder; // placeholder → model skips password update
|
||||
}
|
||||
}
|
||||
|
||||
@@ -442,7 +442,7 @@ class User_Model extends CI_Model {
|
||||
$pwd_placeholder = '**********';
|
||||
|
||||
// Hash password
|
||||
if($fields['user_password'] != NULL)
|
||||
if(array_key_exists('user_password', $fields) && ($fields['user_password'] != NULL))
|
||||
{
|
||||
if (!file_exists('.demo') || (file_exists('.demo') && $this->session->userdata('user_type') == 99)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user