Skip to content
Browse files

Check only the presence of user name + formatting

  • Loading branch information...
1 parent a57c36e commit 204aba8ae1d8f3124f1c5872a6236d1eca84b90f @vmoravec committed Dec 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugins/mailsetting/app/models/mailsetting.rb
View
6 plugins/mailsetting/app/models/mailsetting.rb
@@ -38,9 +38,9 @@ class Mailsetting < BaseModel::Base
validates :smtp_server, :presence=>true
- validates :user, :presence=>true, :length=>{:minimum=>2}
- validates :password, :presence=>true, :confirmation=>true
- validates :password_confirmation, :presence=>true
+ validates :user, :presence=>true
+ validates :password, :presence=>true, :confirmation=>true
+ validates :password_confirmation, :presence=>true
validates :transport_layer_security, :presence=>true
TEST_MAIL_FILE = File.join(YaST::Paths::VAR,"mail","test_sent")

0 comments on commit 204aba8

Please sign in to comment.
Something went wrong with that request. Please try again.