Skip to content

Commit

Permalink
add demo to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Sep 23, 2024
1 parent 339f6db commit d5bc0da
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Wallos: Open-Source Personal Subscription Tracker

- [Introduction](#introduction)
- [Features](#features)
- [Demo](#demo)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Baremetal](#baremetal)
Expand Down Expand Up @@ -46,6 +47,17 @@ Wallos is a powerful, open-source, and self-hostable web application designed to
- Notifications: Wallos supports multiple notification methods (email, discord, pushover, telegram, gotify and webhooks). Get notified about your upcoming payments.
- Multi Language support.

## Demo

If you want to try Wallos, a demo is available at [https://demo.wallosapp.com](https://demo.wallosapp.com).
The database is reset every 2 hours.
To access the demo use the following credentials:

```python
Username: demo
Password: demo
```

## Getting Started

See instructions to run Wallos below.
Expand Down
2 changes: 1 addition & 1 deletion about.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</header>
<div class="credits-list">
<h3><?= translate('about', $i18n) ?></h3>
<p>Wallos <?= $version ?></p>
<p>Wallos <?= $version ?> <?= $demoMode ? "Demo" : "" ?></p>
<p><?= translate('license', $i18n) ?>:
<span>
GPLv3
Expand Down
16 changes: 12 additions & 4 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
exit();
}

$demoMode = getenv('DEMO_MODE');

$cookieExpire = time() + (30 * 24 * 60 * 60);

// Check if login is disabled
Expand Down Expand Up @@ -258,10 +260,16 @@
<label for="password"><?= translate('password', $i18n) ?>:</label>
<input type="password" id="password" name="password" required>
</div>
<div class="form-group-inline">
<input type="checkbox" id="remember" name="remember">
<label for="remember"><?= translate('stay_logged_in', $i18n) ?></label>
</div>
<?php
if (!$demoMode) {
?>
<div class="form-group-inline">
<input type="checkbox" id="remember" name="remember">
<label for="remember"><?= translate('stay_logged_in', $i18n) ?></label>
</div>
<?php
}
?>
<div class="form-group">
<input type="submit" value="<?= translate('login', $i18n) ?>">
</div>
Expand Down

0 comments on commit d5bc0da

Please sign in to comment.