Compare commits
	
		
			2 Commits
		
	
	
		
			0ce52de8cd
			...
			e4a10028b7
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						e4a10028b7 | |
| 
							
							
								
								 | 
						45d15b4f88 | 
| 
						 | 
				
			
			@ -78,6 +78,8 @@ def reset_password(token: str, password: str):
 | 
			
		|||
@Hook
 | 
			
		||||
def update_user(user):
 | 
			
		||||
    current_app.config["FG_AUTH_BACKEND"].update_user(user)
 | 
			
		||||
    if not user.display_name:
 | 
			
		||||
        user.display_name = "{} {}.".format(user.firstname, user.lastname[0])
 | 
			
		||||
    db.session.commit()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,6 +26,10 @@ level = "DEBUG"
 | 
			
		|||
 | 
			
		||||
[DATABASE]
 | 
			
		||||
# engine = "mysql" (default)
 | 
			
		||||
host = "localhost"
 | 
			
		||||
user = "flaschengeist"
 | 
			
		||||
password = "flaschengeist"
 | 
			
		||||
database = "flaschengeist"
 | 
			
		||||
 | 
			
		||||
[FILES]
 | 
			
		||||
# Path for file / image uploads
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue