class UserRepository

Defined in:

repositories/user.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(auth : Authentication = Authentication.new) #

[View source]

Class Method Detail

def self.from_grip_context(context : HTTP::Server::Context) #

[View source]
def self.from_jwt_data(data : JWTData) #

[View source]

Instance Method Detail

def create(request : SignupRequest) : User #

[View source]
def get_by_username(username : String) : User #

[View source]
def get_role_by_id(role_id : Int32) : Role #

[View source]
def get_role_by_name(role_name : String) : Role #

[View source]