v0.19 Minor fix to match import code
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							@@ -4,7 +4,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# name: discourse-md5_authentication
 | 
					# name: discourse-md5_authentication
 | 
				
			||||||
# about: A plugin to authenticate users with MD5 passwords from legacy systems
 | 
					# about: A plugin to authenticate users with MD5 passwords from legacy systems
 | 
				
			||||||
# version: 0.18
 | 
					# version: 0.19
 | 
				
			||||||
# authors: saint@federated.computer
 | 
					# authors: saint@federated.computer
 | 
				
			||||||
# url: https://gitea.federated.computer/saint/discourse-md5_authentication.git
 | 
					# url: https://gitea.federated.computer/saint/discourse-md5_authentication.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -43,7 +43,7 @@ after_initialize do
 | 
				
			|||||||
        Rails.logger.warn "MD5 -- CC -- user.present"
 | 
					        Rails.logger.warn "MD5 -- CC -- user.present"
 | 
				
			||||||
        # Retrieve the provided password and custom MD5 password hash from user custom fields
 | 
					        # Retrieve the provided password and custom MD5 password hash from user custom fields
 | 
				
			||||||
        password = params[:password]
 | 
					        password = params[:password]
 | 
				
			||||||
        custom_password_md5 = user.custom_fields['custom_password_md5']
 | 
					        custom_password_md5 = user.custom_fields['md5_password']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Log the presence of custom MD5 hash for debugging
 | 
					        # Log the presence of custom MD5 hash for debugging
 | 
				
			||||||
        Rails.logger.warn "MD5 -- Check for MD5 password in custom field"
 | 
					        Rails.logger.warn "MD5 -- Check for MD5 password in custom field"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user