# = ildus/server/account - server account library # # Copyright (C) 2005 Paul van Tilburg # # Ildus is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your option) # any later version. require 'yaml' module Ildus class Server class Account attr_reader :user, :pass def self.register_account(user, pass) end def self.unregister_account(user, pass) end def initialize @user = nil @pass = nil @auth = false end def user=(username) raise Handler::AlreadyAuthError if @auth @user = username end def pass=(password) raise Handler::AlreadyAuthError if @auth @pass = password ## STUB @auth = (password == "foo") ## end def authenticated? @auth end end # class Account end # class Server end # module Ildus