Skip to content

Commit

Permalink
Set nasLogin titles to all say "DiskStation" (thinkst#183)
Browse files Browse the repository at this point in the history
The nasLogin template had inconsistent titles.
The <title> and <meta name="application-name" ...> of the nasLogin skin (index.html)
said "RackStation", but the login screen said "DiskStation".
The two titles where all set to say  "DiskStation"
  • Loading branch information
emmanuel-thinkst authored Jun 14, 2022
1 parent 460a71a commit b470c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions opencanary/modules/data/http/skin/nasLogin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<meta http-equiv="X-UA-Compatible" content="IE=11">
<meta name="msapplication-TileImage" content="img/icon_tile.png">
<meta name="application-name" content="Synology RackStation - DemoSite">
<meta name="application-name" content="Synology DiskStation - DemoSite">
<meta name="msapplication-TileColor" content="#246BB3">
<meta name="description" content="Synology DiskStation provides a full-featured network attached storage (NAS) solution to help you manage, backup and share data among Windows, Mac and Linux easily.">
<meta name="keywords" content="Multitasking,Web Application,Personal Cloud">
Expand All @@ -13,7 +13,7 @@
<link rel="shortcut icon" href="img/icon_dsm_48.png" sizes="48x48">
<link rel="shortcut icon" href="img/icon_dsm_32.png" sizes="32x32">
<link rel="shortcut icon" href="img/icon_dsm_16.png" sizes="16x16">
<title>Synology&nbsp;RackStation</title>
<title>Synology&nbsp;DiskStation</title>
<link rel="stylesheet" type="text/css" href="css/ext-all.css">
<link rel="stylesheet" type="text/css" href="css/xtheme-gray.css">
<link rel="stylesheet" type="text/css" href="css/ux-all.css">
Expand Down
6 changes: 3 additions & 3 deletions opencanary/test/module_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_get_http_home_page(self):
"""
request = requests.get('http://localhost/')
self.assertEqual(request.status_code, 200)
self.assertIn('Synology RackStation', request.text)
self.assertIn('Synology DiskStation', request.text)
last_log = get_last_log()
self.assertEqual(last_log['dst_port'], 80)
self.assertEqual(last_log['logdata']['HOSTNAME'], "localhost")
Expand All @@ -125,7 +125,7 @@ def test_log_in_to_http_with_basic_auth(self):
# Currently the web server returns 200, but in future it should return
# a 403 statuse code.
self.assertEqual(request.status_code, 200)
self.assertIn('Synology RackStation', request.text)
self.assertIn('Synology DiskStation', request.text)
last_log = get_last_log()
self.assertEqual(last_log['dst_port'], 80)
self.assertEqual(last_log['logdata']['HOSTNAME'], "localhost")
Expand All @@ -148,7 +148,7 @@ def test_log_in_to_http_with_parameters(self):
# Currently the web server returns 200, but in future it should return
# a 403 status code.
self.assertEqual(request.status_code, 200)
self.assertIn('Synology RackStation', request.text)
self.assertIn('Synology DiskStation', request.text)
last_log = get_last_log()
self.assertEqual(last_log['dst_port'], 80)
self.assertEqual(last_log['logdata']['HOSTNAME'], "localhost")
Expand Down

0 comments on commit b470c24

Please sign in to comment.