mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-10 14:35:43 +09:00
one_client gets the user
git-svn-id: http://svn.opennebula.org/one/trunk@838 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
1 parent
5a891e767c
commit
a4e6ab50ec
1 file changed
+4
@@ -70,6 +70,8 @@ class CloudServer
|
||||
# Generates an OpenNebula Session for the given user
|
||||
# user_name:: _String_ the name of the user
|
||||
def one_client_user(user_name)
|
||||
|
||||
user = get_user(user_name)
|
||||
|
||||
if !user
|
||||
error = OpenNebula::Error.new("User not found")
|
||||
@@ -82,6 +84,8 @@ class CloudServer
|
||||
return client
|
||||
end
|
||||
|
||||
# Authenticates a user
|
||||
#
|
||||
def authenticate?(name, password)
|
||||
user = get_user(name)
|
||||
|
||||
|
||||
Reference in new issue
Block a user