Skip to content

Commit

Permalink
Merge pull request #3 from ctgraham/sprint-dev
Browse files Browse the repository at this point in the history
Sprint dev
  • Loading branch information
radekgomola authored Jun 15, 2022
2 parents 14afbc1 + d181a94 commit 714cbf4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions PlagiarismSettingsForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ function __construct($plugin, $contextId) {
* Initialize form data.
*/
function initData() {
($username, $password) = $this->_plugin->getForcedCredentials();
$credentials = $this->_plugin->getForcedCredentials();
$username = $credentials[0];
$password = $credentials[1];
$this->_data = array(
'ithenticate_user' => $this->_plugin->getSetting($this->_contextId, 'ithenticate_user'),
'ithenticate_pass' => $this->_plugin->getSetting($this->_contextId, 'ithenticate_pass'),
'ithenticate_forced' => isset($username) && isset($password);
'ithenticate_forced' => isset($username) && isset($password)
);
}

Expand Down
7 changes: 5 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ ithenticate = On

; default credentials
; The username to access the API (usually an email address)
username = "[email protected]"
;username = "[email protected]"

; The password to access the API
password = "password"
;password = "password"


You may set the credentials in config.inc.php, or you may set the credentials per-journal in the plugin settings. If credentials are present in config.inc.php, they will override those entered in the plugin settings form.
3 changes: 3 additions & 0 deletions locale/en_US/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ msgstr "iThenticate Usename is required"

msgid "plugins.generic.plagiarism.manager.settings.passwordRequired"
msgstr "iThenticate Password is required"

msgid "plugins.generic.plagiarism.manager.settings.areForced"
msgstr "iThenticate settings are in config.inc.php and changes here will not be used."

0 comments on commit 714cbf4

Please sign in to comment.