Flynntes / Sleeky

🎨 A sleek and simple frontend & backend theme for YOURLS
http://sleeky.flynntes.com
MIT License
472 stars 102 forks source link

Add a simple log in page to frontend #62

Open tobidwest opened 4 years ago

tobidwest commented 4 years ago

The Sleeky front page would be perfect for team members being confused by the complex admin page. It'd be great if you could add a simple log in freautre to the frontend so we can limit access.

Great work, keep it up!

fscholdei commented 3 years ago

You can access the internal Yourls methods. Add the following snipet at the beginning of your sleeky-fontend/index.php.

<?php
// Add login page
require_once( dirname(__FILE__).'/includes/load-yourls.php' );
yourls_maybe_require_auth();
?>

Hope I could help somehow!

3tfyi commented 3 months ago

@fscholdei Sorry to bother you.

Thank you for the method you provided. How do I need to modify the code to enable it to log out of the account? Place it on the right side of the management button. Just like the backend management interface.

Hello admin (logout)