forked from pentestgeek/phishing-frenzy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial attempt at getting ssl virtual hosts configured while refacto…
…ring campaign#show to use nested forms and attributes
- Loading branch information
Showing
22 changed files
with
228 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class Ssl < ActiveRecord::Base | ||
belongs_to :campaign | ||
|
||
#validates_presence_of :filename | ||
validates :function, uniqueness: true | ||
|
||
attr_accessible :filename, :function | ||
mount_uploader :filename, FileUploader | ||
|
||
def self.functions | ||
[['SSLCertificateFile', 'SSLCertificateFile'], | ||
['SSLCertificateKeyFile','SSLCertificateKeyFile'], | ||
['SSLCertificateChainFile','SSLCertificateChainFile']] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,9 +55,9 @@ | |
</td> | ||
<td> | ||
<%= f.text_area(:emails, :size => "31x2", | ||
placeholder: 'firstname, lastname, [email protected]', | ||
value: '', | ||
class: 'form-control') %> | ||
placeholder: 'firstname, lastname, [email protected]', | ||
value: '', | ||
class: 'form-control') %> | ||
</td> | ||
</tr> | ||
</table> | ||
|
Oops, something went wrong.