7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a slight problem controlling the cursor position in a Bash terminal window. I have a function ask a question and then wait for an answer which is either 'y' or 'n' or a carriage return. Whenever the user enters anything else it just erases the answer and waits for the next one. However, the... (23 Replies)
Discussion started by: Ralph
23 Replies
2. Shell Programming and Scripting
Hi,
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies
3. Shell Programming and Scripting
hi guys,
i want command or script to display the content of file from 2nd position to last but one position of a file
abcdefghdasdasdsd
123,345,678,345,323
434,656,656,656,656
678,878,878,989,545
4565656667,65656
i want to display the same above file without first and... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
4. Solaris
Hey folks, I wish every one is just great. I got to do this:
I'm trying to configure my Solaris 10 clients to Automatically Show the login windows of the Main Server whenever the Client restarts or a user logs out.
By other means, the Client user don't have to Go to Options->Remote-Login->... (5 Replies)
Discussion started by: ua-agent
5 Replies
5. UNIX for Dummies Questions & Answers
Hello All,
My Problem is -> How can we get UNIX id from open mail authentication (Windows ID) in UNIX.
In following command we are using domain name, which may change in your reference.
As, if we use following command.
ypcat passwd | grep rohitp | cut -d: -f5 | cut -d, -f1
=> we get... (0 Replies)
Discussion started by: pandey.rohit
0 Replies
6. UNIX Desktop Questions & Answers
Dear Friends
I'm using Hp-unix release b.11.11 and i'm facing a problem to login through telnet session. i can login only by user root but other users can not login.
but if i use x window application like (reflection X) all users can login with no problem.
please kindly advice me on how to... (0 Replies)
Discussion started by: hai_jab
0 Replies
7. Solaris
Hi,
I need to get the console window size for an application, for which I used ioctl() by passing the TIOCGWINSZ parameter. The ioctl() function does not fail (returns non zero), but it could not get the window size (gets 0x0). When I tried to verify the window size by the stty -a command, the... (2 Replies)
Discussion started by: diganta
2 Replies
CatalystX::SimpleLogin::Controller::Login(3pm) User Contributed Perl Documentation CatalystX::SimpleLogin::Controller::Login(3pm)
NAME
CatalystX::SimpleLogin::Controller::Login - Configurable login controller
SYNOPSIS
# For simple useage exmple, see CatalystX::SimpleLogin, this is a
# full config example
__PACKAGE__->config(
'Controller::Login' => {
traits => [
'WithRedirect', # Optional, enables redirect-back feature
'-RenderAsTTTemplate', # Optional, allows you to use your own template
],
actions => {
login => { # Also optional
PathPart => ['theloginpage'], # Change login action to /theloginpage
},
},
},
);
See CatalystX::SimpleLogin::Form::Login for configuring the form.
DESCRIPTION
Controller base class which exists to have login roles composed onto it for the login and logout actions.
ATTRIBUTES
login_form_class
A class attribute containing the class of the form to be initialised. One can override it in a derived class with the class of a new form,
possibly subclassing CatalystX::SimpleLogin::Form::Login. For example:
package MyApp::Controller::Login;
use Moose;
extends('CatalystX::SimpleLogin::Controller::Login');
has '+login_form_class' => (
default => "MyApp::Form::Login",
);
1;
login_form_class_roles
An attribute containing an array reference of roles to be consumed by the form. One can override it in a similar way to "login_form_class":
package MyApp::Controller::Login;
use Moose;
extends('CatalystX::SimpleLogin::Controller::Login');
has '+login_form_class_roles' => (
default => sub { [qw(MyApp::FormRole::Foo MyApp::FormRole::Bar)] },
);
1;
METHODS
BUILD
Cause form instance to be built at application startup.
do_post_login_redirect
This method does a post-login redirect. TODO for BOBTFISH - should it even be public? If it does need to be public, then document it
because the Pod coverage test failed.
login
Login action.
login_redirect
Redirect to the login action.
login_GET
Displays the login form
login_POST
Processes a submitted login form, and if correct, logs the user in and redirects
not_required
A stub action that is anchored at the root of the site ("/") and does not require registration (hence the name).
redirect_after_login_uri
If you are using WithRedirect (i.e. by default), then this methd is overridden to redirect the user back to the page they intially hit
which required authentication.
Note that even if the original URI was a post, then the redirect back will only be a GET.
If you choose NOT to compose the WithRedirect trait, then you can set the uri users are redirected to with the "redirect_after_login_uri"
config key, or by overriding the redirect_after_login_uri method in your own login controller if you need custom logic.
render_login_form
Renders the login form. By default it just calls the form's render method. If you want to do something different, like rendering the form
with a template through your view, this is the place to hook into.
required
A stub action that is anchored at the root of the site ("/") and does require registration (hence the name).
SEE ALSO
CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect
CatalystX::SimpleLogin::Form::Login
AUTHORS
See CatalystX::SimpleLogin for authors.
LICENSE
See CatalystX::SimpleLogin for license.
perl v5.14.2 2012-07-15 CatalystX::SimpleLogin::Controller::Login(3pm)