diff --git a/flexiapi/README.md b/flexiapi/README.md index e17e9ee..9c547d3 100644 --- a/flexiapi/README.md +++ b/flexiapi/README.md @@ -34,6 +34,10 @@ Allow the webserver user to write in the `storage/` directory: chcon -R -t httpd_sys_rw_content_t storage/ +If you have your SQLite DB setup in another directory don't forget to allow write rights as well + + chcon -R -t httpd_sys_rw_content_t db.sqlite + If your external database is locate on a remote machine, you should also allow your webserver user to connect to remote hosts: semanage port -a -t http_port_t -p tcp 3306 // Open remote connections on the MySQL port for example diff --git a/flexiapi/app/Http/Controllers/AccountEmailController.php b/flexiapi/app/Http/Controllers/AccountEmailController.php index cf0665f..88da0cf 100644 --- a/flexiapi/app/Http/Controllers/AccountEmailController.php +++ b/flexiapi/app/Http/Controllers/AccountEmailController.php @@ -19,7 +19,7 @@ class AccountEmailController extends Controller public function update(Request $request) { $request->validate([ - 'email' => 'required|confirmed|email|unique:external.accounts,email', + 'email' => 'required|confirmed|email', ]); $account = $request->user(); diff --git a/flexiapi/public/css/style.css b/flexiapi/public/css/style.css new file mode 100644 index 0000000..aeacf25 --- /dev/null +++ b/flexiapi/public/css/style.css @@ -0,0 +1,92 @@ +@font-face { + font-family: "Montserrat"; + src: local("Montserrat Regular"), local("Montserrat-Regular"), url("https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format("woff2"); + font-style: normal; + font-weight: 400; + unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +@font-face { + font-family: "Montserrat"; + src: local("Montserrat Bold"), local("Montserrat-Bold"), url("https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_dJE3gnD_g.woff2") format("woff2"); + font-style: normal; + font-weight: 700; + unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +body { + min-height: 100vh; + display: flex; + flex-direction: column; + font-family: "Montserrat"; +} + +body > div { + flex: 1 0 auto; +} + +body > header::after, +body > footer::before { + background-image: url('/img/header.svg'); + background-color: white; + background-position: bottom center; + background-repeat: repeat-x; + display: block; + height: 20rem; + width: 100%; + content: ''; +} + +@media screen and (max-width: 991px) { + nav.navbar, + body > header::after { + display: none; + } +} + +h1, h2, h3, a, label { + color: #ff733b; +} + +nav a { + color: white; + opacity: 0.8; +} + +nav a:hover, +nav li.active a { + color: white; + opacity: 1; +} + +input.form-control { + border-color: #9ec6dc; +} + +.btn { + border: 1px solid #ff733b; + background-color: transparent; + color: #ff733b; + border-radius: 10rem; +} + +body > footer, +body > header nav { + background-color: #ff733b; +} + +body > footer { + color: white; + padding-bottom: 1rem; + text-align: center; +} + +body > header::after { + margin-top: -5rem; + margin-bottom: -6rem; +} + +body > footer::before { + background-image: url('/img/footer.svg'); + height: 15rem; +} diff --git a/flexiapi/public/img/footer.png b/flexiapi/public/img/footer.png new file mode 100644 index 0000000..352babe Binary files /dev/null and b/flexiapi/public/img/footer.png differ diff --git a/flexiapi/public/img/footer.svg b/flexiapi/public/img/footer.svg new file mode 100644 index 0000000..7348a26 --- /dev/null +++ b/flexiapi/public/img/footer.svg @@ -0,0 +1,101 @@ + + diff --git a/flexiapi/public/img/header.png b/flexiapi/public/img/header.png new file mode 100644 index 0000000..adf94b9 Binary files /dev/null and b/flexiapi/public/img/header.png differ diff --git a/flexiapi/public/img/header.svg b/flexiapi/public/img/header.svg new file mode 100644 index 0000000..49c989d --- /dev/null +++ b/flexiapi/public/img/header.svg @@ -0,0 +1,99 @@ + + diff --git a/flexiapi/resources/views/account/register.blade.php b/flexiapi/resources/views/account/register.blade.php index 7bb7174..a3f80f9 100644 --- a/flexiapi/resources/views/account/register.blade.php +++ b/flexiapi/resources/views/account/register.blade.php @@ -44,8 +44,9 @@