Merge pull request #174 from DankDumpster/72-char
Make password limit 72 to match discord's limit
This commit is contained in:
		
						commit
						707e94614b
					
				| @ -15,7 +15,7 @@ router.post( | |||||||
| 	RateLimit({ count: 5, window: 60, onylIp: true }), | 	RateLimit({ count: 5, window: 60, onylIp: true }), | ||||||
| 	check({ | 	check({ | ||||||
| 		login: new Length(String, 2, 100), // email or telephone
 | 		login: new Length(String, 2, 100), // email or telephone
 | ||||||
| 		password: new Length(String, 8, 64), | 		password: new Length(String, 8, 72), | ||||||
| 		$undelete: Boolean, | 		$undelete: Boolean, | ||||||
| 		$captcha_key: String, | 		$captcha_key: String, | ||||||
| 		$login_source: String, | 		$login_source: String, | ||||||
|  | |||||||
| @ -16,8 +16,8 @@ router.post( | |||||||
| 	check({ | 	check({ | ||||||
| 		username: new Length(String, 2, 32), | 		username: new Length(String, 2, 32), | ||||||
| 		// TODO: check min password length in config
 | 		// TODO: check min password length in config
 | ||||||
| 		// prevent Denial of Service with max length of 64 chars
 | 		// prevent Denial of Service with max length of 72 chars
 | ||||||
| 		password: new Length(String, 8, 64), | 		password: new Length(String, 8, 72), | ||||||
| 		consent: Boolean, | 		consent: Boolean, | ||||||
| 		$email: new Length(Email, 5, 100), | 		$email: new Length(Email, 5, 100), | ||||||
| 		$fingerprint: String, | 		$fingerprint: String, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user