点击忘记密码后面的二部验证即可自动推送二部验证代码。
为了保证安全,此处调用api时base32值不外泄。
二部验证修改方法:
1.删除或重命名C:\Users\Administrator\AppData\Local\Temp\scp41904\usr\syno\synoman\webman\desktop.js.gz,否则每次自动恢复。
2.修改C:\Users\Administrator\AppData\Local\Temp\scp41904\usr\syno\synoman\webman\desktop.js,
3.首先在解压js的网站解压并覆盖上述的文件,才能继续修改。
4.找到函数showOTPField: function() {
//大概在解压完的程序5776行
5.加入alert("这里就是二部验证的请求代码");
6.更改后的效果:
showOTPField: function() { alert("这里就是二部验证的请求代码"); this.forgetPassUrl.hide(); this.userField.hide(); this.passField.hide(); this.otpField.show(); this.trustDeviceField.show(); this.rememberField.hide(); this.lostPhoneUrl.show(); this.otpField.focus(); this.hideLoginComboBox(); this.hideAppIcon() },
404界面修改操作方法:
1.使用winscp用root账号登陆
2.进入目录:/usr/syno/share/nginx
3.修改附件文件的URL为你想要跳转的URL地址(该选项,非必需项)
4.下载附件的自定义404页面,替换目录内的error.html文件(直接上传覆盖就可以),替换进去就ok了。
常用文件修改路径:
登陆界面:
C:\Users\Administrator\AppData\Local\Temp\scp38335\usr\syno\synoman\webman\desktop.html
404界面: