Filling tho responses array.
This commit is contained in:
parent
c39e639ab1
commit
841d2dc7c2
@ -6,4 +6,5 @@ class AuthD::Response
|
||||
def initialize(@user, @email, @phone)
|
||||
end
|
||||
end
|
||||
AuthD.responses << Contacts
|
||||
end
|
||||
|
@ -4,4 +4,5 @@ class AuthD::Response
|
||||
def initialize(@reason)
|
||||
end
|
||||
end
|
||||
AuthD.responses << Error
|
||||
end
|
||||
|
@ -4,10 +4,12 @@ class AuthD::Response
|
||||
def initialize(@user)
|
||||
end
|
||||
end
|
||||
AuthD.responses << PasswordRecoverySent
|
||||
|
||||
IPC::JSON.message PasswordRecovered, 10 do
|
||||
property user : ::AuthD::User::Public
|
||||
def initialize(@user)
|
||||
end
|
||||
end
|
||||
AuthD.responses << PasswordRecovered
|
||||
end
|
||||
|
@ -7,6 +7,7 @@ class AuthD::Response
|
||||
def initialize(@service, @resource, @user, @permission)
|
||||
end
|
||||
end
|
||||
AuthD.responses << PermissionCheck
|
||||
|
||||
IPC::JSON.message PermissionSet, 8 do
|
||||
property user : Int32
|
||||
@ -16,4 +17,5 @@ class AuthD::Response
|
||||
def initialize(@user, @service, @resource, @permission)
|
||||
end
|
||||
end
|
||||
AuthD.responses << PermissionSet
|
||||
end
|
||||
|
@ -5,4 +5,5 @@ class AuthD::Response
|
||||
def initialize(@token, @uid)
|
||||
end
|
||||
end
|
||||
AuthD.responses << Token
|
||||
end
|
||||
|
@ -4,34 +4,40 @@ class AuthD::Response
|
||||
def initialize(@user)
|
||||
end
|
||||
end
|
||||
AuthD.responses << User
|
||||
|
||||
IPC::JSON.message UserAdded, 3 do
|
||||
property user : ::AuthD::User::Public
|
||||
def initialize(@user)
|
||||
end
|
||||
end
|
||||
AuthD.responses << UserAdded
|
||||
|
||||
IPC::JSON.message UserEdited, 4 do
|
||||
property uid : Int32
|
||||
def initialize(@uid)
|
||||
end
|
||||
end
|
||||
AuthD.responses << UserEdited
|
||||
|
||||
IPC::JSON.message UserValidated, 5 do
|
||||
property user : ::AuthD::User::Public
|
||||
def initialize(@user)
|
||||
end
|
||||
end
|
||||
AuthD.responses << UserValidated
|
||||
|
||||
IPC::JSON.message UsersList, 6 do
|
||||
property users : Array(::AuthD::User::Public)
|
||||
def initialize(@users)
|
||||
end
|
||||
end
|
||||
AuthD.responses << UsersList
|
||||
|
||||
IPC::JSON.message MatchingUsers, 11 do
|
||||
property users : Array(::AuthD::User::Public)
|
||||
def initialize(@users)
|
||||
end
|
||||
end
|
||||
AuthD.responses << MatchingUsers
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user