You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/06/29 13:23:46 UTC
airavata-php-gateway git commit: AIRAVATA-2448 Lowercase user entered
username
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop a06deae94 -> 5e2bf43d1
AIRAVATA-2448 Lowercase user entered username
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/5e2bf43d
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/5e2bf43d
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/5e2bf43d
Branch: refs/heads/develop
Commit: 5e2bf43d13ffab3da38b04f2c7d671fe603cd5e6
Parents: a06deae
Author: Marcus Christie <ma...@iu.edu>
Authored: Thu Jun 29 09:23:37 2017 -0400
Committer: Marcus Christie <ma...@iu.edu>
Committed: Thu Jun 29 09:23:37 2017 -0400
----------------------------------------------------------------------
app/controllers/AccountController.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/5e2bf43d/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index f8ef42a..380d2f5 100644
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -114,7 +114,7 @@ class AccountController extends BaseController
public function loginSubmit()
{
if (CommonUtilities::form_submitted()) {
- $username = Input::get("username");
+ $username = strtolower(Input::get("username"));
$password = $_POST['password'];
$response = Keycloak::authenticate($username, $password);
@@ -303,7 +303,7 @@ class AccountController extends BaseController
public function forgotPasswordSubmit()
{
- $username = Input::get("username");
+ $username = strtolower(Input::get("username"));
if(empty($username)){
CommonUtilities::print_error_message("Please provide a valid username");
return View::make("account/forgot-password");