## General developer forum

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.

Average of ratings: -

$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: -