Commit a5189d4c authored by nazarf's avatar nazarf

change password to pass

parent 0a6218fc
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="9714672e-a423-436e-a8d6-e25573fece52" name="Changes" comment="set and check miner status"> <list default="true" id="9714672e-a423-436e-a8d6-e25573fece52" name="Changes" comment="change path to get and update miners">
<change beforePath="$PROJECT_DIR$/.ruby-version" beforeDir="false" afterPath="$PROJECT_DIR$/.ruby-version" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/controllers/miners_controller.rb" beforeDir="false" afterPath="$PROJECT_DIR$/app/controllers/miners_controller.rb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/controllers/front_controller.rb" beforeDir="false" afterPath="$PROJECT_DIR$/app/controllers/front_controller.rb" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/views/miners/_form.html.haml" beforeDir="false" afterPath="$PROJECT_DIR$/app/views/miners/_form.html.haml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/routes.rb" beforeDir="false" afterPath="$PROJECT_DIR$/config/routes.rb" afterDir="false" /> <change beforePath="$PROJECT_DIR$/db/migrate/20230312235403_create_miners.rb" beforeDir="false" afterPath="$PROJECT_DIR$/db/migrate/20230312235403_create_miners.rb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/db/schema.rb" beforeDir="false" afterPath="$PROJECT_DIR$/db/schema.rb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/db/seeds.rb" beforeDir="false" afterPath="$PROJECT_DIR$/db/seeds.rb" afterDir="false" />
</list> </list>
<list id="e4be6035-6aaa-4f44-85ea-6a3713a8155a" name=".idea" comment="" /> <list id="e4be6035-6aaa-4f44-85ea-6a3713a8155a" name=".idea" comment="" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -59,7 +61,7 @@ ...@@ -59,7 +61,7 @@
<command value="rake db:seed" /> <command value="rake db:seed" />
</option> </option>
</component> </component>
<component name="RunManager" selected="Rails.dev_start"> <component name="RunManager" selected="Rake.db:seed: base_site">
<configuration name="dev_start" type="RailsRunConfigurationType" factoryName="Rails"> <configuration name="dev_start" type="RailsRunConfigurationType" factoryName="Rails">
<module name="base_site" /> <module name="base_site" />
<predefined_log_file enabled="true" id="RUBY_RAILS_SERVER" /> <predefined_log_file enabled="true" id="RUBY_RAILS_SERVER" />
...@@ -231,7 +233,7 @@ ...@@ -231,7 +233,7 @@
<workItem from="1678925183855" duration="109000" /> <workItem from="1678925183855" duration="109000" />
<workItem from="1678925900403" duration="62000" /> <workItem from="1678925900403" duration="62000" />
<workItem from="1678926670884" duration="178000" /> <workItem from="1678926670884" duration="178000" />
<workItem from="1678962814930" duration="1440000" /> <workItem from="1678962814930" duration="2322000" />
</task> </task>
<task id="LOCAL-00001" summary="set and check miner status"> <task id="LOCAL-00001" summary="set and check miner status">
<created>1678921173455</created> <created>1678921173455</created>
...@@ -240,7 +242,21 @@ ...@@ -240,7 +242,21 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1678921173455</updated> <updated>1678921173455</updated>
</task> </task>
<option name="localTasksCounter" value="2" /> <task id="LOCAL-00002" summary="change ruby version and configuration">
<created>1678964280692</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1678964280692</updated>
</task>
<task id="LOCAL-00003" summary="change path to get and update miners">
<created>1678964310809</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1678964310809</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -248,14 +264,16 @@ ...@@ -248,14 +264,16 @@
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="set and check miner status" /> <MESSAGE value="set and check miner status" />
<option name="LAST_COMMIT_MESSAGE" value="set and check miner status" /> <MESSAGE value="change ruby version and configuration" />
<MESSAGE value="change path to get and update miners" />
<option name="LAST_COMMIT_MESSAGE" value="change path to get and update miners" />
</component> </component>
<component name="com.intellij.coverage.CoverageDataManagerImpl"> <component name="com.intellij.coverage.CoverageDataManagerImpl">
<SUITE FILE_PATH="coverage/bsa_miner@db_seed__base_site.rcov" NAME="db:seed: base_site Coverage Results" MODIFIED="1678666605094" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" />
<SUITE FILE_PATH="coverage/bsa_miner@dev_start.rcov" NAME="dev_start Coverage Results" MODIFIED="1678962978496" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" /> <SUITE FILE_PATH="coverage/bsa_miner@dev_start.rcov" NAME="dev_start Coverage Results" MODIFIED="1678962978496" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" />
<SUITE FILE_PATH="coverage/bsa_miner@db_seed__base_site.rcov" NAME="db:seed: base_site Coverage Results" MODIFIED="1678964902879" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" />
<SUITE FILE_PATH="coverage/bsa_miner@db_rollback__base_site.rcov" NAME="db:rollback: base_site Coverage Results" MODIFIED="1678666388851" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" /> <SUITE FILE_PATH="coverage/bsa_miner@db_rollback__base_site.rcov" NAME="db:rollback: base_site Coverage Results" MODIFIED="1678666388851" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" />
<SUITE FILE_PATH="coverage/bsa_miner@Unnamed.rcov" NAME="dev_start Coverage Results" MODIFIED="1678666751300" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" /> <SUITE FILE_PATH="coverage/bsa_miner@Unnamed.rcov" NAME="dev_start Coverage Results" MODIFIED="1678666751300" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" />
<SUITE FILE_PATH="coverage/bsa_miner@db_migrate__base_site.rcov" NAME="db:migrate: base_site Coverage Results" MODIFIED="1678666547095" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" /> <SUITE FILE_PATH="coverage/bsa_miner@db_migrate__base_site.rcov" NAME="db:migrate: base_site Coverage Results" MODIFIED="1678964855863" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" />
<SUITE FILE_PATH="coverage/bsa_miner@db_create__base_site.rcov" NAME="db:create: base_site Coverage Results" MODIFIED="1678665112902" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" /> <SUITE FILE_PATH="coverage/bsa_miner@db_create__base_site.rcov" NAME="db:create: base_site Coverage Results" MODIFIED="1678665112902" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="base_site" />
</component> </component>
</project> </project>
\ No newline at end of file
...@@ -71,6 +71,6 @@ class MinersController < AdminController ...@@ -71,6 +71,6 @@ class MinersController < AdminController
# Never trust parameters from the scary internet, only allow the white list through. # Never trust parameters from the scary internet, only allow the white list through.
def miner_params def miner_params
params.require(:miner).permit(:name, :status, :ip_address, :port, :wallet_address, :password, :algorithm, :ip_address_2, :port_2, :wallet_address_2, :password_2, :algorithm_2, :hash_rate, :last_activity) params.require(:miner).permit(:name, :status, :ip_address, :port, :wallet_address, :pass, :algorithm, :ip_address_2, :port_2, :wallet_address_2, :pass_2, :algorithm_2, :hash_rate, :last_activity)
end end
end end
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
= f.input :ip_address = f.input :ip_address
= f.input :port = f.input :port
= f.input :wallet_address = f.input :wallet_address
= f.input :password = f.input :pass
= f.input :algorithm = f.input :algorithm
= f.input :ip_address_2 = f.input :ip_address_2
= f.input :port_2 = f.input :port_2
= f.input :wallet_address_2 = f.input :wallet_address_2
= f.input :password_2 = f.input :pass_2
= f.input :algorithm_2 = f.input :algorithm_2
......
...@@ -6,12 +6,12 @@ class CreateMiners < ActiveRecord::Migration ...@@ -6,12 +6,12 @@ class CreateMiners < ActiveRecord::Migration
t.string :ip_address t.string :ip_address
t.string :port t.string :port
t.string :wallet_address t.string :wallet_address
t.string :password t.string :pass
t.string :algorithm t.string :algorithm
t.string :ip_address_2 t.string :ip_address_2
t.string :port_2 t.string :port_2
t.string :wallet_address_2 t.string :wallet_address_2
t.string :password_2 t.string :pass_2
t.string :algorithm_2 t.string :algorithm_2
t.string :hash_rate t.string :hash_rate
t.datetime :last_activity t.datetime :last_activity
......
...@@ -100,12 +100,12 @@ ActiveRecord::Schema.define(version: 20230312235403) do ...@@ -100,12 +100,12 @@ ActiveRecord::Schema.define(version: 20230312235403) do
t.string "ip_address", limit: 255 t.string "ip_address", limit: 255
t.string "port", limit: 255 t.string "port", limit: 255
t.string "wallet_address", limit: 255 t.string "wallet_address", limit: 255
t.string "password", limit: 255 t.string "pass", limit: 255
t.string "algorithm", limit: 255 t.string "algorithm", limit: 255
t.string "ip_address_2", limit: 255 t.string "ip_address_2", limit: 255
t.string "port_2", limit: 255 t.string "port_2", limit: 255
t.string "wallet_address_2", limit: 255 t.string "wallet_address_2", limit: 255
t.string "password_2", limit: 255 t.string "pass_2", limit: 255
t.string "algorithm_2", limit: 255 t.string "algorithm_2", limit: 255
t.string "hash_rate", limit: 255 t.string "hash_rate", limit: 255
t.datetime "last_activity" t.datetime "last_activity"
......
...@@ -149,4 +149,4 @@ Setting.delete_all ...@@ -149,4 +149,4 @@ Setting.delete_all
Miner.delete_all Miner.delete_all
Miner.create name: "bsa1", ip_address: "149.28.218.119", port: "4028", Miner.create name: "bsa1", ip_address: "149.28.218.119", port: "4028",
wallet_address: "439JLdAVDN1ao9fp9VUQNZHL84HrBpcXbEXQSZxyToDQjXsmEyDsqV9YZj1iuUbjLwLUTxuhwfhD53MUCeRzv59C6hDexR1", wallet_address: "439JLdAVDN1ao9fp9VUQNZHL84HrBpcXbEXQSZxyToDQjXsmEyDsqV9YZj1iuUbjLwLUTxuhwfhD53MUCeRzv59C6hDexR1",
password: "bsa1", algorithm: "randomx" pass: "bsa1", algorithm: "randomx"
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment