mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Merge pull request #1 from tunght/th-resend-verification-email
Update webserver.js
This commit is contained in:
		
						commit
						37693a5134
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1776,7 +1776,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
 | 
			
		|||
        } else {
 | 
			
		||||
            // Check is email already exists
 | 
			
		||||
            obj.db.GetUserWithVerifiedEmail(domain.id, email, function (err, docs) {
 | 
			
		||||
                if ((err != null) || (docs.length > 0)) {
 | 
			
		||||
                if ((err != null) || (docs.length > 0 && docs.find(u => u._id === req.session.cuserid) < 0)) {
 | 
			
		||||
                    // Email already exitst
 | 
			
		||||
                    req.session.messageid = 102; // Existing account with this email address.
 | 
			
		||||
                } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue