We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15ae954 commit 734277eCopy full SHA for 734277e
1 file changed
interface/web/sites/shell_user_edit.php
@@ -126,6 +126,17 @@ function onSubmit() {
126
127
if(isset($this->dataRecord['ssh_rsa'])) $this->dataRecord['ssh_rsa'] = trim($this->dataRecord['ssh_rsa']);
128
129
+ $system_config = $app->getconf->get_global_config();
130
+
131
+ if($system_config['misc']['ssh_authentication'] == 'password') {
132
+ $this->dataRecord['ssh_rsa'] = null;
133
+ }
134
135
+ if($system_config['misc']['ssh_authentication'] == 'key') {
136
+ $this->dataRecord['password'] = null;
137
+ $this->dataRecord['repeat_password'] = null;
138
139
140
parent::onSubmit();
141
}
142
0 commit comments