Skip to content

Commit

Permalink
Implement pulsejet#26: 'Block user edit values given by OpenID.'
Browse files Browse the repository at this point in the history
  • Loading branch information
yrammos committed Dec 21, 2020
1 parent 86ceca5 commit 2baa101
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ $CONFIG = array (
// Login button text
'oidc_login_button_text' => 'Log in with OpenID',

// Hide the NextCloud password change form.
'oidc_login_hide_password_form' => false,

// Attribute map for OIDC response. Available keys are:
// i) id: Unique identifier for username
// ii) name: Full name
Expand Down
12 changes: 12 additions & 0 deletions css/oidc.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#security-password {
display: none;
}

#two-factor-auth {
display: none;
}

#security-webauthn {
display: none;
}

4 changes: 4 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use OCP\IRequest;
use OCP\ISession;
use OCP\IL10N;
use OCP\Util;

class Application extends App
{
Expand Down Expand Up @@ -79,6 +80,9 @@ public function register()
exit();
});
}
if ($hidePasswordForm = $this->config->getSystemValue('oidc_login_hide_password_form', false)) {
Util::addStyle($this->appName, 'oidc');
}
return;
}

Expand Down

0 comments on commit 2baa101

Please sign in to comment.