📄 newpasswordmethod.pm
字号:
################################################################################ Codestriker: Copyright (c) 2001, 2002 David Sitsky. All rights reserved.# sits@users.sourceforge.net## This program is free software; you can redistribute it and modify it under# the terms of the GPL.# Method for going to the reset password form.package Codestriker::Http::Method::NewPasswordMethod;use strict;use Codestriker::Http::Method;use Codestriker::Action::NewPassword;@Codestriker::Http::Method::NewPasswordMethod::ISA = ("Codestriker::Http::Method");# Generate a URL for this method.sub url { my ($self, %args) = @_; if ($self->{cgi_style}) { return $self->{url_prefix} . "?action=new_password" . "&email=" . CGI::escape($args{email}) . "&challenge=" . CGI::escape($args{challenge}); } else { return $self->{url_prefix} . "/user/" . CGI::escape($args{email}) . "/password/new/challenge/" . CGI::escape($args{challenge}); }}sub extract_parameters { my ($self, $http_input) = @_; my $action = $http_input->{query}->param('action'); my $path_info = $http_input->{query}->path_info(); if ($self->{cgi_style} && defined $action && $action eq "new_password") { return 1; } elsif ($path_info =~ m{^/user/.*/password/new/challenge/}) { $self->_extract_nice_parameters($http_input, user => 'email', challenge => 'challenge'); return 1; } else { return 0; }}sub requires_authentication { return 0;}sub execute { my ($self, $http_input, $http_output) = @_; Codestriker::Action::NewPassword->process($http_input, $http_output);}1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -