Sha256: 3004f0745cc942ca8d4d23d6132eac4405befcbb9be33747c6c42e962dc8a79a
Contents?: true
Size: 838 Bytes
Versions: 1
Compression:
Stored size: 838 Bytes
Contents
require 'lib/media_wiki_html.rb' require 'models/asmenu.rb' require 'models/asuser.rb' class AppswarmController<TemplateController layout :main def initialize(*args) super @mainMenu=AppswarmTemplate::Menu.new(self) @menu=AppswarmTemplate::Menu.new(self) end def login @loginFailed=false login=params["login"] password=params["password"] if login and password login=login.to_s password=password.to_s users=AppswarmTemplate::User::findByName(store,login) users.each{|user| if user.checkLogin(login,password) session[:loginUser]=user redirect_to :action=>:index return end } @loginFailed=true end end private def user session[:loginUser] end def store getApp.getApp(:localObjectStorage) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appswarm-0.0.1 | templates/web/appswarm/controllers/appswarm.rb |