1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix auth prompt for ssh repos

This commit is contained in:
Nick O'Leary 2018-02-03 23:44:19 +00:00
parent 0526372f28
commit 22d942b705
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1521,7 +1521,7 @@ RED.projects = (function() {
'</div>');
var isSSH = false;
if (/^https?:\/\//) {
if (/^https?:\/\//.test(url)) {
$('<div class="form-row"><label for="projects-user-auth-username">Username</label><input id="projects-user-auth-username" type="text"></input></div>'+
'<div class="form-row"><label for=projects-user-auth-password">Password</label><input id="projects-user-auth-password" type="password"></input></div>').appendTo(message);
} else if (/^(?:ssh|[\d\w\.\-_]+@[\w\.]+):(?:\/\/)?/.test(url)) {