General developer forum

login - moodle

 
 
Picture of Maria Kyprianou
login - moodle
 

Hi. Im reading code from file /login/index.php and I want to know what is the meaning of variable $frm. Also, what does the value "2" mean: $CFG->rememberusername == 2. As i understand, rememberusername represents the checkbox "Remember username" . If there is any documentation about this part of code, please let me know. 

Thanks in advance. 

 

 
Average of ratings: -
Dan at desk in Moodle HQ, Perth
Re: login - moodle
Group Core developersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup Plugin developersGroup Testers

$frm is the basically the data submitted from the form, see $frm = data_submitted();

The $CFG->rememberusername == 2 is the option to optionally remember a username. Really that should be a constant, you can see where the setting is defined in admin/settings/security.php

 
Average of ratings: -
Picture of Maria Kyprianou
Re: login - moodle
 

hello! thank you very much!!!! big grin 

 
Average of ratings: -