oxen_account 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84189d5dfafb4e4a94047f813901e9a186888127
4
- data.tar.gz: 6c6bba07971fd418c69dd12d15a7f911bf60db2a
3
+ metadata.gz: e1f2d02c73ebc1c1280973df846c607ff622e246
4
+ data.tar.gz: 0d4fa18c040d9d68962cb133b1438c538d013cbd
5
5
  SHA512:
6
- metadata.gz: 70590d219402889994ea4c8bd4c0191291e13cdd6cd17b4268dffcf6293c492b803899d44fc19c3464e03874886fded2e25782d821a5970e111c8934498a567d
7
- data.tar.gz: e8a60b3c3d0c612ffbd20399594c47d8c736850eea1ee11995a2117a3859aeab62d5a323eafa92ce7e99501cdd910928cc8b4233120afede5e54f6eb76a86955
6
+ metadata.gz: 6dc5b2d17a9e6c50c9ef1f403d7158f72e6b162d9e67bb4d7854f8345a0c79b5b8f675fe6390d791d5f77c46697a356f536729078380530d79e3d08b80068f7c
7
+ data.tar.gz: d779b59292ef04fed0bc5283f9c73abeb50162b1e265f280c544dbe32b46ad43b443cf0a0ee2f98679603feba50578fa518415b6473f8d0a2874f5a74be6c0a7
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.1.2
@@ -0,0 +1,3 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
3
+ //= require_tree .
@@ -0,0 +1,24 @@
1
+ jQuery ->
2
+
3
+ displayHint = (strength, crack_time) ->
4
+ msg = 'Password is ' + strength + ' (time to break it: ' + crack_time + ')'
5
+
6
+ estimate_message = this.next('.estimate-message')
7
+ if estimate_message.length > 0
8
+ estimate_message.text msg
9
+ else
10
+ this.after '<span class="help-block estimate-message">' + msg + '</span>'
11
+
12
+ $('form').on 'keyup', '.estimate-password', ->
13
+ $this = $(this)
14
+ estimation = zxcvbn($this.val())
15
+ crack_time = estimation.crack_time_display
16
+
17
+ switch estimation.score
18
+ when 0 then displayHint.call($this, "very weak", crack_time)
19
+ when 1 then displayHint.call($this, "weak", crack_time)
20
+ when 2 then displayHint.call($this, "okay", crack_time)
21
+ when 3 then displayHint.call($this, "strong", crack_time)
22
+ when 4 then displayHint.call($this, "very strong", crack_time)
23
+
24
+ return