diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-31 21:12:25 +0200 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-31 21:12:25 +0200 |
commit | 9ad32e2e8ec273d42dd381ccf051a7543ed0d635 (patch) | |
tree | fb6e187419b81ebe1f17479346d9075a39e5a4ca | |
parent | e7fd69e652566232dad8631a9c95532c033eaf96 (diff) |
Ispravljeno u slucaju da korisnik menja nesto drugo osim username-a.
-rw-r--r-- | backend/api/api/Services/UserService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/api/api/Services/UserService.cs b/backend/api/api/Services/UserService.cs index 7ec6f4b2..7fc4bdb1 100644 --- a/backend/api/api/Services/UserService.cs +++ b/backend/api/api/Services/UserService.cs @@ -50,7 +50,7 @@ namespace api.Services //username koji postoji u bazi using (var session = _client.StartSession()) { - + if(username!=user.Username) if(_users.Find(u => u.Username == user.Username).FirstOrDefault()!=null) { return false; |