catalystx::simplelogin::traitfor::controller::login::logout(3pm) [debian man page]
CatalystX::SimpleLogin::TraitFor::Controller::Login::LogUser3Contributed Perl DocuCatalystX::SimpleLogin::TraitFor::Controller::Login::Logout(3pm)NAME
CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout - log users out
DESCRIPTION
Simple controller role for logging users out. Provides a "logout" action (at /logout by default) which redirects the user to the homepage
by default.
ACTIONS
logout : Chained('/') PathPart('logout') Args(0)
Calls "$c->logout", then redirects to the logout uri retuned by "$self->redirect_after_logout_uri".
METHODS
redirect_after_logout_uri
Returns the uri to redirect to after logout.
Defaults to "$c->uri_for('/');" you can override this by setting the "<redirect_after_logout_uri"> key in config to a path to be passed to
"$c->uri_for".
Alternatively, you can write your own redirect_after_logout_uri in your Login controller if you are extending CatalystX::SimpleLogin and it
will override the method from this role.
do_clear_session_on_logout
Deletes the session after a logout.
To enable this use the following in your config:
__PACKAGE__->config('Controller::Login' => { clear_session_on_logout => 1 });
SEE ALSO
CatalystX::SimpleLogin::Controller::Login
AUTHORS
See CatalystX::SimpleLogin for authors.
LICENSE
See CatalystX::SimpleLogin for license.
perl v5.14.2 2012-05-05 CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout(3pm)
Check Out this Related Man Page
Catalyst::ActionRole::NeedsLogin(3pm) User Contributed Perl Documentation Catalyst::ActionRole::NeedsLogin(3pm)NAME
Catalyst::ActionRole::NeedsLogin - checks if a user is logged in and if not redirects him to login page
SYNOPSIS
package MyApp::Controller::NeedsAuth;
use Moose;
use namespace::autoclean;
# One needs to inherit from Catalyst::Controller in order
# to get the Does('NeedsLogin') functionality.
BEGIN { extends 'Catalyst::Controller'; }
sub inbox : Path Does('NeedsLogin') {
# Redirects to /login if not logged in
my ($self, $c) = @_;
$c->stash->{template} = "inbox.tt2";
return;
}
sub inbox : Path Does('NeedsLogin') :LoginRedirectMessage('Your custom Message') {
# Redirects to /login if not logged in-
}
# Turn on in config
MyApp->config('Contoller::Login' => { traits => ['WithRedirect'] });
DESCRIPTION
Provides a ActionRole for forcing the user to login.
WRAPPED METHODS
execute
If there is no logged-in user, call the login_redirect() method in the 'Login' controller with the Catalyst context object, $c, and the
message specified by the ":LoginRedirectMessage('Message here')" method attribute (see the synopsis).
If there is a user logged-in (i.e: "$c->user" is true), execute the body of the action as it is.
SEE ALSO
CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect
CatalystX::SimpleLogin::Controller::Login
CatalystX::SimpleLogin::Form::Login
AUTHORS
See CatalystX::SimpleLogin for authors.
LICENSE
See CatalystX::SimpleLogin for license.
perl v5.14.2 2012-07-15 Catalyst::ActionRole::NeedsLogin(3pm)
I would like to automatically logout from the system inactive users depending on their functions.
For example there are users that I would like to logout after 15 minutes of inactivity, but there are others that I would like to logout after 30 minutes of inactivity.
It's possible to do this??? (6 Replies)
hi all
The "last" command shows the last login time of the user. is there any command for last logout time.
as usual, replies are appreciated. thanks boys.
raguram R (6 Replies)
Hi ,
I have SunBlade 150 Workstation (Solaris 9), I installed the OS again then when I try to login to any server using ( Options > Remote Login > Enter Host Name)
after I entered any host name nothing happened just white page for 2 or 3 mintues then the login screen reseted to the local... (4 Replies)
I have rebooted my box (Redhat Linux) and the system is back online now, but Iam unable to login via ssh for all the users including root, it says "Login Incorrect". I am pretty sure the username/password is correct.May be the password or the shadow file is corrupted ???
How do i login to the... (6 Replies)
Hi to all,
i want configure my solaris 10 machine to log all login,logout and "su" in a particularly file. How can i do it?
Now i enable auth.* in syslog.conf but the informations are written in a confused mode...
Thanks (4 Replies)
Hi
I am using UNIX version.
HP-UX HP-UNIX B.11.00
I am writing a script which on certain condition should logout of unix.
But with exit command i am not able to get this..
Plz suggest how i should logout of the session directly. (9 Replies)
Dear readers
I use SnowLeopard 10.6.2 and need to do some special tasks at login and logout of an sepcific user.
My problem is, how do I send a string "login" respectively "logout" from computer "A", where the login/logout script runs, to computer "B" where some other tasks need to be done.
... (3 Replies)
Good evening you scripting guru's!
I have the following script to delete a file on logout of a Mac :
find . –name com.apple.sidebarlists.plist –exec rm -f {} \;
It works fine in terminal and when logging out. However, it takes forever to run the script at logout...A minute and a half.
... (12 Replies)
Greetings! I'm new here and excited to get aquianted with this site! Seems like a good source of knowledge!
Anyways, my first problem de'jour deals with the following....
We have dual monitors(top/bottom) for our system. The problem is that the solaris login window is split between the top... (7 Replies)
Hi,
Can you please let me know how can and where we will find the logs. ie,which user is login and logout from server and by using which ip address they accessed server.
please let me know the steps and folder, file names to trace the logs from server . we are using System = SunOS 5.10.
Please... (10 Replies)
hi guys
i have a file like this which is contain more than 3000 records
i want to extract emails have Creation Date: : Wed, 14 Aug 2009 and their POP3 Last Login Date and WebMail Last Login Date is Thu, 01 Jan 1970
how can i could do that
for example in this sample i need... (13 Replies)
Good Evening all,
After spending the last week or so reading many posts I decided to register and join in. This is my first post on the forum so please forgive me as im new to this, Im after some help in throwing together a quick basic script without using expect to change the password on several... (4 Replies)
Hello Experts,
I have a use case -
Currently, in my .profile I have added "bash" at the end so while logging in, it will be bashed as well. Which is working fine and no issues.
But while logging out, I have hit exit two times like 1st exit will come out of bash shell and 2nd exit will... (5 Replies)