General developer forum

Moodle33 - login - how to hide classic form, only show OAuth2 button

 
Picture of Bert van der Hooft
Re: Moodle33 - login - how to hide classic form, only show OAuth2 button
 

I'm not a able tot design a nice login page, So I solved it in the css (see below).

CSS:

.forgetpass {display:none};

#loginbtn {display:none};

#username {display:none};

#password {display:none};

.rememberpass {display:none};

div.col-md-4:nth-child(1) {display:none};

.col-md-4 {

    float: center;

    width: 100%;

};

.btn-block {

    display: block;

    width: 50%;

}


 In order to get access in case of problems:

  1.  Allow theme change by URL. And login with another theme
  2. Or: use the inspector in your browser to remove the css code above

See also: https://moodle.org/mod/forum/discuss.php?d=344478 

Or


 
Average of ratings: Useful (1)