From ffb256b6de80cd19473f3bd2df4d50319f929dae Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 11 Apr 2018 02:18:47 +0900 Subject: [PATCH] Update gnuboard.dbt.php --- helper/gnuboard.dbt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helper/gnuboard.dbt.php b/helper/gnuboard.dbt.php index 347a122..6c5cd25 100644 --- a/helper/gnuboard.dbt.php +++ b/helper/gnuboard.dbt.php @@ -145,16 +145,16 @@ if(!function_exists("gnb_get_password")) { // run login process if(!function_exists("gnb_process_login")) { - function gnb_process_login($mb_id, $mb_password) { + function gnb_process_safe_login($user_name, $user_password) { $result = false; - $mb = gnb_get_member($mb_id); + $mb = gnb_get_member($user_name); if(!array_key_empty("mb_id", $mb)) { $user_profile = array( "user_id" => $mb['mb_no'], "user_password" => get_password(gnb_get_password($mb['mb_password'])), ); - $result = process_safe_login($mb['mb_id'], $mb['mb_password'], $user_profile); + $result = process_safe_login($mb['mb_id'], gnb_get_password($mb['mb_password']), $user_profile); } return $result;