diff --git a/index.html b/index.html index b66a6ae..e031aa1 100644 --- a/index.html +++ b/index.html @@ -126,13 +126,18 @@
Error: wrong password or token
-
+
+ +
-
- -
diff --git a/js/glowingbear.js b/js/glowingbear.js index ee8540e..5111d52 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -695,7 +695,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', }); $scope.parseTotp = function() { - $scope.totpInvalid = !/^\d{6}$/.test($scope.totp); + $scope.totpInvalid = !/^\d{4,10}$/.test($scope.totp); }; $scope.connect = function() {