ui: implement OpenId login

This commit is contained in:
Dietmar Maurer
2021-06-14 11:58:52 +02:00
parent 3b7b1dfb8e
commit cd975e5787
3 changed files with 114 additions and 2 deletions

View File

@ -326,6 +326,14 @@ Ext.define('PBS.Utils', {
};
},
openid_login_param: function() {
let param = Ext.Object.fromQueryString(window.location.search);
if (param.state !== undefined && param.code !== undefined) {
return param;
}
return undefined;
},
calculate_dedup_factor: function(gcstatus) {
let dedup = 1.0;
if (gcstatus['disk-bytes'] > 0) {