crypto safety check
This commit is contained in:
@@ -90,7 +90,7 @@ angular.module('app.frontend')
|
||||
// if user has high password cost and is using browser that doesn't support WebCrypto,
|
||||
// we want to tell them that they can't login with this browser.
|
||||
if(cost > 5000) {
|
||||
return window.crypto.subtle ? true : false;
|
||||
return (window.crypto && window.crypto.subtle) ? true : false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!DOCTYPE html>
|
||||
<html ng-app="app.frontend" ng-controller="BaseCtrl">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
|
||||
Reference in New Issue
Block a user