Project

General

Profile

« Previous | Next » 

Revision 4a96211d

Added by Shira Maximov over 6 years ago

Fixes #20890 - changes SSH key validation messages

View differences:

app/models/ssh_key.rb
validates :key,
:presence => true,
:ssh_key => true,
:format => { with: /\A(ssh|ecdsa)-.*\Z/ }
:format => { with: /\A(ssh|ecdsa)-.*\Z/, message: N_('must be in OpenSSH public key format') }
validates :key,
:format => { :without => /\n|\r/, :message => N_('should be a single line') }

Also available in: Unified diff