mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +00:00 
			
		
		
		
	Run 'crystal tool format'
This commit is contained in:
		| @@ -163,10 +163,10 @@ before_all do |env| | ||||
|  | ||||
|     # Invidious users only have SID | ||||
|     if !env.request.cookies.has_key? "SSID" | ||||
| email = PG_DB.query_one?("SELECT email FROM session_ids WHERE id = $1", sid, as: String) | ||||
|       email = PG_DB.query_one?("SELECT email FROM session_ids WHERE id = $1", sid, as: String) | ||||
|  | ||||
| if email | ||||
|   user = PG_DB.query_one("SELECT * FROM users WHERE email = $1", email, as: User) | ||||
|       if email | ||||
|         user = PG_DB.query_one("SELECT * FROM users WHERE email = $1", email, as: User) | ||||
|         challenge, token = create_response(user.email, "sign_out", HMAC_KEY, PG_DB, 1.week) | ||||
|  | ||||
|         env.set "challenge", challenge | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth