In the function "GetPasswordHashAndSalt" there's a crash bug if there's no password data associated with a user. The reader attempts to read before checking if there's even rows to read.
varreader=command.ExecuteReader();//This read() needs to happen after the HasRows check..reader.Read();if(!reader.HasRows)return(string.Empty,string.Empty);
In the function "GetPasswordHashAndSalt" there's a crash bug if there's no password data associated with a user. The reader attempts to read before checking if there's even rows to read.
```C#
var reader = command.ExecuteReader();
//This read() needs to happen after the HasRows check..
reader.Read();
if (!reader.HasRows) return (string.Empty, string.Empty);
```
glm94
added the bug label 2021-06-29 14:22:20 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
In the function "GetPasswordHashAndSalt" there's a crash bug if there's no password data associated with a user. The reader attempts to read before checking if there's even rows to read.