Lines 62-75
InstallAuth - Authenticates Koha users for Install process
Link Here
|
62 |
|
62 |
|
63 |
=head1 DESCRIPTION |
63 |
=head1 DESCRIPTION |
64 |
|
64 |
|
65 |
The main function of this module is to provide |
65 |
The main function of this module is to provide |
66 |
authentification. However the get_template_and_user function has |
66 |
authentification. However the get_template_and_user function has |
67 |
been provided so that a users login information is passed along |
67 |
been provided so that a users login information is passed along |
68 |
automatically. This gets loaded into the template. |
68 |
automatically. This gets loaded into the template. |
69 |
This package is different from C4::Auth in so far as |
69 |
This package is different from C4::Auth in so far as |
70 |
C4::Auth uses many preferences which are supposed NOT to be obtainable when installing the database. |
70 |
C4::Auth uses many preferences which are supposed NOT to be obtainable when installing the database. |
71 |
|
71 |
|
72 |
As in C4::Auth, Authentication is based on cookies. |
72 |
As in C4::Auth, Authentication is based on cookies. |
73 |
|
73 |
|
74 |
=head1 FUNCTIONS |
74 |
=head1 FUNCTIONS |
75 |
|
75 |
|
Lines 84-102
InstallAuth - Authenticates Koha users for Install process
Link Here
|
84 |
} |
84 |
} |
85 |
); |
85 |
); |
86 |
|
86 |
|
87 |
This call passes the C<query>, C<flagsrequired> and C<authnotrequired> |
87 |
This call passes the C<query>, C<flagsrequired> and C<authnotrequired> |
88 |
to C<&checkauth> (in this module) to perform authentification. |
88 |
to C<&checkauth> (in this module) to perform authentification. |
89 |
See C<&checkauth> for an explanation of these parameters. |
89 |
See C<&checkauth> for an explanation of these parameters. |
90 |
|
90 |
|
91 |
The C<template_name> is then used to find the correct template for |
91 |
The C<template_name> is then used to find the correct template for |
92 |
the page. The authenticated users details are loaded onto the |
92 |
the page. The authenticated users details are loaded onto the |
93 |
template in the logged_in_user variable (which is a Koha::Patron object). Also the |
93 |
template in the logged_in_user variable (which is a Koha::Patron object). Also the |
94 |
C<sessionID> is passed to the template. This can be used in templates |
94 |
C<sessionID> is passed to the template. This can be used in templates |
95 |
if cookies are disabled. It needs to be put as and input to every |
95 |
if cookies are disabled. It needs to be put as and input to every |
96 |
authenticated page. |
96 |
authenticated page. |
97 |
|
97 |
|
98 |
More information on the C<gettemplate> sub can be found in the |
98 |
More information on the C<gettemplate> sub can be found in the |
99 |
Templates.pm module. |
99 |
Templates.pm module. |
100 |
|
100 |
|
101 |
=cut |
101 |
=cut |
102 |
|
102 |
|
103 |
- |
|
|