mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-30 23:03:02 +00:00 
			
		
		
		
	Fix mismerge user logon with python3 in opds feed
This commit is contained in:
		| @@ -261,7 +261,7 @@ def load_user_from_header(header_val): | |||||||
| def check_auth(username, password): | def check_auth(username, password): | ||||||
|     if sys.version_info.major == 3: |     if sys.version_info.major == 3: | ||||||
|         username=username.encode('windows-1252') |         username=username.encode('windows-1252') | ||||||
|     user = ub.session.query(ub.User).filter(func.lower(ub.User.nickname) == username.lower()).first() |     user = ub.session.query(ub.User).filter(func.lower(ub.User.nickname) == username.decode('utf-8').lower()).first() | ||||||
|     return bool(user and check_password_hash(user.password, password)) |     return bool(user and check_password_hash(user.password, password)) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzieisaacs
					Ozzieisaacs