Bladeren bron

Merge branch 'master' into BYTON-GB

FolusWen 5 jaren geleden
bovenliggende
commit
45a094610a
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      EVSE/rootfs/var/www/set_passwd_action.php

+ 2 - 2
EVSE/rootfs/var/www/set_passwd_action.php

@@ -15,8 +15,8 @@
 		$json['superPhihong'] 	= md5('1231231238');
 		*/
 		$json[$_REQUEST['user']]=md5($_REQUEST['passwd']);
-		file_put_contents("valid_info", json_encode($json));
-		exec("cp valid_info /Storage/valid_info",$output,$return_var);
+		file_put_contents("/var/www/valid_info", json_encode($json));
+		exec("yes | cp -vf /var/www/valid_info /Storage/valid_info",$output,$return_var);
 		 if(count($output)!=0){
 			 $jsone['result'] = "Success";
 			 $jsone['message'] = $json;