mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Update Flask Hashids
This commit is contained in:
		
							
								
								
									
										12
									
								
								.env.tpl
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								.env.tpl
									
									
									
									
									
								
							@@ -57,6 +57,18 @@ HOST_DOCKER_GID=
 | 
				
			|||||||
# ASSETS_DEBUG=
 | 
					# ASSETS_DEBUG=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					################################################################################
 | 
				
			||||||
 | 
					# Flask-Hashids                                                                #
 | 
				
			||||||
 | 
					# https://github.com/Pevtrick/Flask-Hashids                                    #
 | 
				
			||||||
 | 
					################################################################################
 | 
				
			||||||
 | 
					# DEFAULT: 16
 | 
				
			||||||
 | 
					# HASHIDS_MIN_LENGTH=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# NOTE: Use this bash command `python -c "import uuid; print(uuid.uuid4().hex)"`
 | 
				
			||||||
 | 
					#       It is strongly recommended that this is NEVER the same as the SECRET_KEY
 | 
				
			||||||
 | 
					HASHIDS_SALT=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
################################################################################
 | 
					################################################################################
 | 
				
			||||||
# Flask-Login                                                                  #
 | 
					# Flask-Login                                                                  #
 | 
				
			||||||
# https://flask-login.readthedocs.io/en/latest/                                #
 | 
					# https://flask-login.readthedocs.io/en/latest/                                #
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,6 +36,7 @@ class Config:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    ''' # Flask-Hashids '''
 | 
					    ''' # Flask-Hashids '''
 | 
				
			||||||
    HASHIDS_MIN_LENGTH = 16
 | 
					    HASHIDS_MIN_LENGTH = 16
 | 
				
			||||||
 | 
					    HASHIDS_SALT=os.environ.get('HASHIDS_SALT')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ''' # Flask-Login # '''
 | 
					    ''' # Flask-Login # '''
 | 
				
			||||||
    REMEMBER_COOKIE_SECURE = \
 | 
					    REMEMBER_COOKIE_SECURE = \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ eventlet
 | 
				
			|||||||
Flask==2.1.3
 | 
					Flask==2.1.3
 | 
				
			||||||
Flask-APScheduler
 | 
					Flask-APScheduler
 | 
				
			||||||
Flask-Assets
 | 
					Flask-Assets
 | 
				
			||||||
Flask-Hashids<=0.2.2
 | 
					Flask-Hashids==1.0.0
 | 
				
			||||||
Flask-HTTPAuth
 | 
					Flask-HTTPAuth
 | 
				
			||||||
Flask-Login
 | 
					Flask-Login
 | 
				
			||||||
Flask-Mail
 | 
					Flask-Mail
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user