Browse files

MDL-32492 auth/cas: respect https login links

  • Loading branch information...
1 parent e66c9c0 commit 895e76ea51c462c18ad66e0761ad76cd26a63ecf Chris Follin committed with danpoltawski Apr 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/cas/cas_form.html
View
4 auth/cas/cas_form.html
@@ -1,11 +1,11 @@
<div class="loginbox clearfix">
<div class="loginpanel">
<div>
-<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=CAS';?>"><?php print_string('accesCAS', 'auth_cas');?></a>
+<a href="<?php echo get_login_url() . '?authCAS=CAS';?>"><?php print_string('accesCAS', 'auth_cas');?></a>
</div>
<br/>
<div>
-<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=NOCAS';?>"><?php print_string('accesNOCAS', 'auth_cas');?></a>
+<a href="<?php echo get_login_url() . '?authCAS=NOCAS';?>"><?php print_string('accesNOCAS', 'auth_cas');?></a>
</div>
</div>
</div>

0 comments on commit 895e76e

Please sign in to comment.