Coral
Library
Companies
About ReefBay
Login
Coral
Library
Companies
About ReefBay
Login
Support
Please send all inquiries to
[email protected]
Download the ReefBay App
[email protected]
|
©ReefBay 2025
Join The Community
Create an account to contribute to the community
Sign Up
Login
el.textContent = ''); fetch('https://reefbay.com/register', { method: 'POST', body: new FormData($el), headers: { 'X-CSRF-TOKEN': document.querySelector('meta[name=csrf-token]').content, 'Accept': 'application/json', 'X-Requested-With': 'XMLHttpRequest' } }) .then(response => response.json()) .then(data => { if (data.success) { show = false; window.location.reload(); } else if (data.errors) { loading = false; Object.keys(data.errors).forEach(field => { const errorElement = $el.querySelector(`[data-error-${field}]`); if (errorElement) { errorElement.textContent = data.errors[field][0]; } }); } }) .catch(error => { loading = false; console.error('Registration failed:', error); $el.querySelector('[data-error-general]').textContent = 'An error occurred during registration'; });" method="POST" class="space-y-4">
Name
Username (optional)
Email
Password
el.textContent = ''); const formData = new FormData($el); formData.append('_token', '21zErXNiqkTxW9k9v8hlsBQac4yW0Gznb877KlGP'); fetch('https://reefbay.com/login', { method: 'POST', body: formData, headers: { 'X-CSRF-TOKEN': '21zErXNiqkTxW9k9v8hlsBQac4yW0Gznb877KlGP', 'Accept': 'application/json', 'X-Requested-With': 'XMLHttpRequest' }, credentials: 'same-origin' }) .then(response => response.text().then(text => { try { return JSON.parse(text); } catch (e) { console.log('Raw response:', text); throw new Error('Invalid JSON response'); } })) .then(data => { if (data.success) { window.location.reload(); } else if (data.errors) { loading = false; Object.keys(data.errors).forEach(field => { const errorElement = $el.querySelector(`[data-error-${field}]`); if (errorElement) { errorElement.textContent = data.errors[field][0]; } }); } }) .catch(error => { loading = false; console.error('Login failed:', error); $el.querySelector('[data-error-general]').textContent = 'An error occurred during login'; });" method="POST" class="space-y-4">
Email
Password
Forgot your password?
Prefer our mobile app?
Scan to download the app