##// END OF EJS Templates
login: Fix recaptcha. #4279...
login: Fix recaptcha. #4279 There was an error in the retrieval of private/public key from settings model. This leads to `None` as private key and this indicates that recaptcha is not active. Therefore it was never used no matter if private key was set or not.

File last commit:

r727:912a8f06 default
r1062:f920e065 default
Show More
rhodecode-toggle.js
15 lines | 517 B | application/javascript | JavascriptLexer
Polymer({
is: 'rhodecode-toggle',
properties: {
noSpinner: { type: Boolean, value: false, reflectToAttribute:true},
tooltipText: { type: String, value: "Click to toggle", reflectToAttribute:true},
checked: { type: Boolean, value: false, reflectToAttribute:true},
active: { type: Boolean, value: false, reflectToAttribute:true, notify:true}
},
shouldShow: function(){
return !this.noSpinner
},
labelStatus: function(isActive){
return this.checked? 'Enabled' : "Disabled"
}
});