mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	closes #4516
This commit is contained in:
		| @@ -108,6 +108,12 @@ Controllers.login = function(req, res, next) { | ||||
| 	data.error = req.flash('error')[0]; | ||||
| 	data.title = '[[pages:login]]'; | ||||
|  | ||||
| 	if (!data.allowLocalLogin && !data.allowRegistration && data.alternate_logins && data.authentication.length === 1) { | ||||
| 		return helpers.redirect(res, { | ||||
| 			external: data.authentication[0].url | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	res.render('login', data); | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user