Closed SlavaUtesinov closed 7 years ago
Thank you for your valuable suggestion: I'm point here the readers who also experienced this issue. However, please take into account that the JwtProvider implementation suggested within the book should not be taken as "final" in any way: the book helps to build a potentially shippable product (milestone 1) which would always have to be refined (and also updated) later on.
It seems, that at
JwtProvider
class,user
variable is cached due toDbContext
lifecycle duration, so password remains the same, as it was at first login. Simple solution is to addDbContext.Entry(user).Reload();
afteruser
initialization (at line 92).