I need Auto Login - Magazine Theme

I need Auto Login - Magazine Theme

by moaid hawadi -
Number of replies: 2

hi 

when enter to the moodle 

this page what directly shown : moodle->index.php

but i want to use index which is exist in

: moodle->login->index.php  it's better for me

so i write this code in index.php which exist in :

moodle->index.php   :

print "<script>";
print " self.location='login/index.php';"; // Comment this line if you don't want to redirect
print "</script>";
echo"<center><img height='100' width='100%' src='15.jpg'/></center>";

 

i write it to transfer me directly to the other index.php which i need it 

when i run it , it's okey but when enter the userid and password and logged in , this message which been shown

Attachment loged_2.jpg
Average of ratings: -
In reply to moaid hawadi

Re: I need Auto Login - Magazine Theme

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Why go to all that trouble when you can set your site to take you to the LOGIN page automatically.

There is a setting in Site Administration > Security > Site Policies > Force users to Login

 
 
Mary
 

 

Average of ratings: Useful (1)
In reply to Mary Evans

Re: I need Auto Login - Magazine Theme

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Moaidsmile I think you have asked the same question in three different forum threads and you have had the same answer (as Mary Evans gave you above) three timessmile

Average of ratings: Useful (1)