class UnstaticSessionsController < ApplicationController filter_parameter_logging :password def new @unstatic_session = UnstaticSession.new end def create @unstatic_session = UnstaticSession.new(params[:unstatic_session]) if @unstatic_session.authorized? flash[:notice] = "Unstatic Login Successful" session[:unstatic_password] = UnstaticPassword.encrypt(params[:unstatic_session][:password]) redirect_to "/" else render :action => "new" end end def destroy session[:unstatic_password] = nil flash[:notice] = "Successfuly logged out of unstatic" redirect_to "/" end end