From d2d52eaa1ed8ac2007c1f710cee74823f080de6d Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Fri, 17 Mar 2017 06:10:28 +0100 Subject: Rework of the Server List. Many Bugfixes (see Mail). --- .../locationinfo/inc/coursebackend/coursebackend_dummy.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 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 3dd0f7aa..e6ba0fe8 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']; + $this->pw = $x['password_str']; if ($this->pw == "mfg") { $this->error = false; @@ -29,7 +29,7 @@ class Coursebackend_Dummy extends CourseBackend { public function getCredentials(){ $options = ["opt1", "opt2", "opt3", "opt4", "opt5", "opt6", "opt7", "opt8"]; - $credentials = ["username" => "string","password"=>"string","option"=>$options]; + $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]]; return $credentials; } -- cgit v1.2.3-55-g7522