projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NO TICKET: Check for loggingConfigEncoder.allow
[osm/UI.git]
/
skyquake
/
plugins
/
launchpad
/
src
/
ssh_keys
/
sshKeyStore.js
diff --git
a/skyquake/plugins/launchpad/src/ssh_keys/sshKeyStore.js
b/skyquake/plugins/launchpad/src/ssh_keys/sshKeyStore.js
index
400c096
..
7ae421b
100644
(file)
--- a/
skyquake/plugins/launchpad/src/ssh_keys/sshKeyStore.js
+++ b/
skyquake/plugins/launchpad/src/ssh_keys/sshKeyStore.js
@@
-1,5
+1,5
@@
/*
/*
- *
+ *
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-174,10
+174,8
@@
export default class SshKeyStore {
return {key: payload.key, name: payload.name};
}
validate(data) {
return {key: payload.key, name: payload.name};
}
validate(data) {
- for (let k in data) {
- if((data[k].trim() == '') || ((/[^\w _-]/).test(data[k]))) {
- return false;
- }
+ if((data['name'].trim() == '') || ((/[^\w _-]/).test(data['name']))) {
+ return false;
}
return true;
}
}
return true;
}