mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 09:17:05 +02:00
cosme
This commit is contained in:
parent
b7a7b0a797
commit
ec44ba10d6
@ -13,6 +13,7 @@ class User
|
|||||||
ENCRYPTED_PASSWORD_FILE = Rails.root + "db/#{Rails.env}-user.txt"
|
ENCRYPTED_PASSWORD_FILE = Rails.root + "db/#{Rails.env}-user.txt"
|
||||||
|
|
||||||
attr_accessor :name, :password, :password_confirmation, :current_password
|
attr_accessor :name, :password, :password_confirmation, :current_password
|
||||||
|
attr_writer :password_digest
|
||||||
|
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
validates :password, length: { minimum: 8 }
|
validates :password, length: { minimum: 8 }
|
||||||
@ -28,10 +29,6 @@ class User
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def password_digest=(digest)
|
|
||||||
@password_digest = digest
|
|
||||||
end
|
|
||||||
|
|
||||||
def update_attributes(params)
|
def update_attributes(params)
|
||||||
params.each_pair do |key, value|
|
params.each_pair do |key, value|
|
||||||
send("#{key}=", value)
|
send("#{key}=", value)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<pre v-if="isPresentedLogs"><!-- be careful indent -->
|
<pre v-if="isPresentedLogs"><!-- be careful indent -->
|
||||||
<div class="log"><span v-repeat="logs">{{ $value }}
|
<div class="log"><span v-repeat="logs">{{ $value }}
|
||||||
</span></div></pre>
|
</span></div></pre>
|
||||||
|
|
||||||
<div v-if="!isPresentedLogs && !processing">
|
<div v-if="!isPresentedLogs && !processing">
|
||||||
<p>[log is empty]</p>
|
<p>[log is empty]</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user