add check box of "Keep me logged in" in login form

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
Neha Sharma
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Dec 22, 2012 6:53 am

add check box of "Keep me logged in" in login form

Post by Neha Sharma » Thu Dec 27, 2012 9:34 am

in login form i want to make a check-box foe keep me logged in. how can i achieve this

User avatar
sitesrus
Joomla! Ace
Joomla! Ace
Posts: 1469
Joined: Mon Nov 12, 2012 10:48 pm

Re: add check box of "Keep me logged in" in login form

Post by sitesrus » Fri Dec 28, 2012 2:00 pm

The login box already contains a "Remember me" feature/check box which is identical to what you want. If you want to change the wording do a language override and change it to something else.

Go into the language manager, override, and search for the language string and alter the constant to whatever you want.
I like working with Joomla :). I offer the following professional services: Custom extension development, SEO/marketing, maintenance/support, security and WCAG audits, and will work on websites at a reasonable rate.

Neha Sharma
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Dec 22, 2012 6:53 am

Re: add check box of "Keep me logged in" in login form

Post by Neha Sharma » Wed Jan 02, 2013 6:54 am

i has been create new menu form users manger->login form but it not showing the check box

User avatar
sitesrus
Joomla! Ace
Joomla! Ace
Posts: 1469
Joined: Mon Nov 12, 2012 10:48 pm

Re: add check box of "Keep me logged in" in login form

Post by sitesrus » Wed Jan 02, 2013 2:53 pm

Hi,

Did you create the correct menu type? You can also load a page with a login module on it as well.

Please provide a screen shot of the issue in question.

Also, make sure you don't have a third party template that is using overriding to change the appearance of the login.
I like working with Joomla :). I offer the following professional services: Custom extension development, SEO/marketing, maintenance/support, security and WCAG audits, and will work on websites at a reasonable rate.

Neha Sharma
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Dec 22, 2012 6:53 am

Re: add check box of "Keep me logged in" in login form

Post by Neha Sharma » Wed Jan 09, 2013 8:57 am

no i am using correct menu item and nothing is override this form.
screen short attached
You do not have the required permissions to view the files attached to this post.

grsamson
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 160
Joined: Thu Dec 31, 2009 12:04 am

Re: add check box of "Keep me logged in" in login form

Post by grsamson » Fri Mar 01, 2013 4:33 am

Hi Neha, Did you get a solution to this problem?

thanks,
Geoff

Neha Sharma
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Dec 22, 2012 6:53 am

Re: add check box of "Keep me logged in" in login form

Post by Neha Sharma » Fri Mar 01, 2013 4:40 am

yes.
in user controller there is login function there is remember me code is there i just get the value of check box
e.g:- $data['remember'] = JRequest::getString('remember', '', 'post', JREQUEST_ALLOWRAW);
then
// Get the log in options.
$options = array();
if($data['remember']){
$options['remember'] = $this->input->getBool('remember', true);
}else{
$options['remember'] = $this->input->getBool('remember', false);
} .
it's working...... :pop

grsamson
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 160
Joined: Thu Dec 31, 2009 12:04 am

Re: add check box of "Keep me logged in" in login form

Post by grsamson » Fri Mar 01, 2013 4:59 am

OK, I think I got it. What version of Joomla are you using. Syntax for J 2.5.9 appears to be:

if($data['remember']){
$options['remember'] = JRequest::getBool('remember', true);
}else{
$options['remember'] = JRequest::getBool('remember', false);
}

Yes?


thanks!
Geoff

Neha Sharma
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Dec 22, 2012 6:53 am

Re: add check box of "Keep me logged in" in login form

Post by Neha Sharma » Fri Mar 01, 2013 5:04 am

i am using j3.0.

grsamson
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 160
Joined: Thu Dec 31, 2009 12:04 am

Re: add check box of "Keep me logged in" in login form

Post by grsamson » Fri Mar 01, 2013 5:08 am

OK. I'm still not seeing that field on the Login page Perhaps there's an override somewhere?

thanks,
Geoff

Neha Sharma
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Dec 22, 2012 6:53 am

Re: add check box of "Keep me logged in" in login form

Post by Neha Sharma » Fri Mar 01, 2013 6:12 am

you have to create new field in the login form


Locked

Return to “Joomla! 3.x Bug Reporting”