mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 16:39:15 +00:00
Add warning if using default password
This commit is contained in:
parent
f2989997b1
commit
78b3d6b16d
|
@ -134,4 +134,7 @@ def get_device_changelog():
|
|||
changelog = subprocess.check_output(["cat", "/usr/share/mynode/changelog"])
|
||||
except:
|
||||
changelog = "ERROR"
|
||||
return changelog
|
||||
return changelog
|
||||
|
||||
def has_changed_password():
|
||||
return os.path.isfile("/home/bitcoin/.mynode/.hashedpw")
|
|
@ -375,6 +375,7 @@ def index():
|
|||
"ram_usage": get_ram_usage(),
|
||||
"swap_usage": get_swap_usage(),
|
||||
"device_temp": get_device_temp(),
|
||||
"has_changed_password": has_changed_password(),
|
||||
"upgrade_available": upgrade_available
|
||||
}
|
||||
return render_template('main.html', **templateData)
|
||||
|
|
|
@ -140,6 +140,12 @@
|
|||
|
||||
{% include 'includes/message_display.html' %}
|
||||
|
||||
{% if not has_changed_password %}
|
||||
<div class="upgrade_ad_main_page">
|
||||
<p style="text-align: center;"><b>Warning!</b><br/>You appear to be using the default password! You should change it to something else on the <a href="/settings">settings</a> page.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="app_tile_row">
|
||||
<div>
|
||||
<div class="main_header">Core Services</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user