Sha256: 15de287c0d4085bd89772d8aeca97e0fde107bd5bd9f6c24f8accf59c9df27cd
Contents?: true
Size: 523 Bytes
Versions: 5
Compression:
Stored size: 523 Bytes
Contents
class AuthController < ApplicationController def index login render_action 'login' end def login if @request.post? if user = User.authenticate(@params['username'], @params['password']) start_user_session(user) redirect_to_main return end end end # logout() removes the session information set in login() and then deletes the # session. The browser is then redirected to the log in form. def logout end_user_session redirect_to_main end end
Version data entries
5 entries across 5 versions & 1 rubygems