From eade9d466c9e3be2be4753ee4367356b356d2dc4 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 22 Mar 2017 17:12:52 +0100 Subject: Backend credentials translation added. Bugfix: Checkboxes instead of bs switches were shown in the server settings --- .../locationinfo/inc/coursebackend/coursebackend_dummy.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules-available/locationinfo/inc') diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php index 725b4436..b8aa44a0 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php @@ -4,7 +4,7 @@ class Coursebackend_Dummy extends CourseBackend { public function setCredentials($json,$location,$serverID) { $x = $json; - $this->pw = $x['password_str']; + $this->pw = $x['password']; if ($this->pw == "mfg") { $this->error = false; @@ -29,8 +29,7 @@ class Coursebackend_Dummy extends CourseBackend { public function getCredentials(){ $options = ["opt1", "opt2", "opt3", "opt4", "opt5", "opt6", "opt7", "opt8"]; - $credentials = ["username" => ["string", "This is a helptext.", false],"password_str"=>["string", "SOME SECRET PW U WILL NEVER KNOW!", true],"password int"=>["int", "INT PW", true],"option"=>[$options, "OMG WHAT THE", false], "CheckTheBox" => ["bool", "Test with a cb", false], - "CB2 t" => ["bool", "Second checkbox test", false]]; + $credentials = ["username" => "string","password"=>"password","integer"=>"int","option"=>$options,"CheckTheBox" =>"bool","CB2 t" =>"bool"]; return $credentials; } -- cgit v1.2.3-55-g7522