]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Base.pm
User- und Adminlogin jederzeit via Formularfelder ermöglichen
[mfinanz.git] / SL / Controller / Base.pm
index ac09057af1c279bfcf000604bc46d102c3d06728..29289ff961ff3eda0dd0144611457d894d76f60b 100644 (file)
@@ -167,6 +167,11 @@ sub delay_flash_on_redirect {
   0;
 }
 
+sub get_auth_level {
+  # Ignore the 'action' parameter.
+  return 'user';
+}
+
 #
 # private functions -- for use in Base only
 #
@@ -497,12 +502,21 @@ action.
 
 The hook's return values are discarded.
 
-=item delay_flash_on_redirect
+=item C<delay_flash_on_redirect>
 
 May be overridden by a controller. If this method returns true, redirect_to
 will delay all flash messages for the current request. Defaults to false for
 compatibility reasons.
 
+=item C<get_auth_level $action>
+
+May be overridden by a controller. Determines what kind of
+authentication is required for a particular action. Must return either
+C<admin> (which means that authentication as an admin is required),
+C<user> (authentication as a normal user suffices) with a possible
+future value C<none> (which would require no authentication but is not
+yet implemented).
+
 =back
 
 =head2 PRIVATE FUNCTIONS