mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	common.js: Don't set default password quality/length in frontend.
The min quality/length values are always available via data attributes. So there is no point of specefying a default value in common.js.
This commit is contained in:
		@@ -32,18 +32,6 @@ var common = require("js/common.js");
 | 
			
		||||
        return self;
 | 
			
		||||
    }());
 | 
			
		||||
 | 
			
		||||
    password = 'plain';
 | 
			
		||||
    accepted = common.password_quality(password, bar);
 | 
			
		||||
    assert(!accepted);
 | 
			
		||||
    assert.equal(bar.w, '10.654507557627486%');
 | 
			
		||||
    assert.equal(bar.added_class, 'bar-danger');
 | 
			
		||||
 | 
			
		||||
    password = 'z!X4@S_&';
 | 
			
		||||
    accepted = common.password_quality(password, bar);
 | 
			
		||||
    assert(accepted);
 | 
			
		||||
    assert.equal(bar.w, '47.679074269445294%');
 | 
			
		||||
    assert.equal(bar.added_class, 'bar-success');
 | 
			
		||||
 | 
			
		||||
    function password_field(min_length, min_quality) {
 | 
			
		||||
        var self = {};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user