Evidencija prijava — login_istorija tabela, logovanje svih pokušaja, stranica istorije po korisniku, WebAuthn shema

This commit is contained in:
2026-06-03 22:05:00 +02:00
parent ed7ae605b2
commit d68aaba787
11 changed files with 258 additions and 5 deletions
+6
View File
@@ -111,6 +111,12 @@ type PokusajiPrijaveRepository interface {
ObrisiStare(ctx context.Context, pre time.Time) error
}
// LoginIstorijsaRepository definiše operacije nad evidencijom prijava
type LoginIstorijsaRepository interface {
Zabeleži(ctx context.Context, korisnikID *int64, ip, userAgent, razlog string, uspeh bool) error
ListaZaKorisnika(ctx context.Context, korisnikID int64, limit int) ([]*model.LoginPokusaj, error)
}
// PodsetnikRepository definiše operacije nad podsetnicima
type PodsetnikRepository interface {
Lista(ctx context.Context, filter PodsetnikFilter) ([]model.Podsetnik, error)