mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-24 02:03:52 +03:00
Cleaning old code and debug messages
This commit is contained in:
parent
aa33d18c9e
commit
8244182b48
@ -36,9 +36,6 @@ class Quota
|
||||
}
|
||||
}.merge(conf)
|
||||
|
||||
STDERR.puts conf.inspect
|
||||
STDERR.puts @conf.inspect
|
||||
|
||||
@defaults=@conf[:defaults]
|
||||
|
||||
@usage=OneUsage.new(@client)
|
||||
@ -68,13 +65,12 @@ class Quota
|
||||
}
|
||||
|
||||
quotas=@table.filter(:uid => uid)
|
||||
pp quotas.first
|
||||
|
||||
if quotas.first
|
||||
STDERR.puts "updating"
|
||||
#STDERR.puts "updating"
|
||||
quotas.update(data)
|
||||
else
|
||||
STDERR.puts "inserting"
|
||||
#STDERR.puts "inserting"
|
||||
@table.insert(data.merge!(:uid => uid))
|
||||
end
|
||||
end
|
||||
|
@ -26,7 +26,6 @@ class SimpleAuth
|
||||
# * password: password stored in OpenNebula dabatase
|
||||
# * token: password sent by the client trying to connect
|
||||
def auth(user_id, user, password, token)
|
||||
t_user, t_password=token.split(':')
|
||||
auth=(password==token)
|
||||
auth="Invalid credentials" if auth!=true or token=='-'
|
||||
auth
|
||||
|
Loading…
x
Reference in New Issue
Block a user