bbmb 2.1.9 → 2.2.0

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: 02ac82813c6ae6fe3a129dc874acd6135b85147a
4
- data.tar.gz: 2651afaf8bce34e014edc3f1db4bf893b5601ee8
3
+ metadata.gz: 0fc3295b2cda0d75a3081036c93995faeee526a0
4
+ data.tar.gz: 9a8f77400cee85995a9da0e73c6e716f12a081ea
5
5
  SHA512:
6
- metadata.gz: fac65074880f3c4204c1a79248498a024220726579fd22ccc432a82ea37d1493d25bee4714bdfcc2704749a265b9872e9eee23e3b3b6f53f65a29a07de170293
7
- data.tar.gz: a133950797b7b90f42efdbf523cd8fe7e9f4728d6be360517274fe013dd131b785305b41b5a4af136b241e00a3a8f68a8e4dffc1ec270a5b6af1c121d5109cac
6
+ metadata.gz: 2061a3762bd644ab5869d9174027d5e5554d8d2adca75521954b090e8f376e66a51defe6b4e8002916fd67cc2f4c32c4b8b4af934df9d7e5057e381c1f87850f
7
+ data.tar.gz: 591fdea209b7846a3e204f0fe3fc585cbe8244e0f3e7f682a62497da26d22071da3575e28098379ddd68873290d7863ece8c531fc53d0b7b7e756ab527bb4dcd
@@ -1,3 +1,7 @@
1
+ === 2.2.0 / 17.05.2017
2
+
3
+ * Refuse empty e-mail adress with e_email_required
4
+
1
5
  === 2.1.9 / 17.05.2017
2
6
 
3
7
  * Trying to set a customer to an already existing e-mail-address fails correctly
@@ -89,6 +89,10 @@ class Customer < Global
89
89
  end
90
90
  def update_user(input)
91
91
  email = input.delete(:email)
92
+ unless email
93
+ error = create_error(:e_email_required, :email, @model.email)
94
+ return
95
+ end
92
96
  @model.email = email
93
97
  @model.protect!(:email)
94
98
  if(passhash = input.delete(:confirm_pass))
@@ -1,3 +1,3 @@
1
1
  module BBMB
2
- VERSION = '2.1.9'
2
+ VERSION = '2.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbmb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger