summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc
diff options
context:
space:
mode:
authorJannik Schönartz2017-03-22 17:12:52 +0100
committerJannik Schönartz2017-03-22 17:12:52 +0100
commiteade9d466c9e3be2be4753ee4367356b356d2dc4 (patch)
treeeb6c6205b2e916a2b4e17290a536b0fb1cba76bf /modules-available/locationinfo/inc
parentMerge branch 'location-info-panel' of git.openslx.org:openslx-ng/slx-admin in... (diff)
downloadslx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.tar.gz
slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.tar.xz
slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.zip
Backend credentials translation added. Bugfix: Checkboxes instead of bs switches were shown in the server settings
Diffstat (limited to 'modules-available/locationinfo/inc')
-rw-r--r--modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php5
1 files changed, 2 insertions, 3 deletions
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;
}