Commit 12f7faf68dd6d19de5910675dde35b84c9811b26

Authored by Hayk Nazaryan
1 parent 6cd59d7d57
Exists in master

add link to site and open login modal

Showing 3 changed files with 15 additions and 3 deletions Side-by-side Diff

resources/views/emails/RepairPassword.blade.php
... ... @@ -19,7 +19,7 @@
19 19 </b>
20 20 <a href="{{ config('app.url') }}" target="_blank"
21 21 style="word-wrap: break-word; word-break: break-all; color: #1a55a6; font-size: 16px; line-height: 24px; display: inline-block; text-align: left; max-width: 90%; margin: 0 auto;">
22   - {{ config('app.url') }}
  22 + {{ config('app.url') . '#sign' }}
23 23 </a>
24 24 <div style="text-align:center;margin-top: 32px;font-size: 0;">
25 25 <a href="https://t.me/rekamore_su" target="_blank"
resources/views/modals/reset_password.blade.php
... ... @@ -29,7 +29,7 @@
29 29 data: form.serialize(),
30 30 success: function (response) {
31 31 $.fancybox.open({
32   - src: '#reset-password-sent',
  32 + src: '#sign',
33 33 type: 'inline',
34 34 opts: {touch: false}
35 35 });
... ... @@ -37,7 +37,6 @@
37 37 error: function (jqXHR) {
38 38 if (jqXHR.status === 422) {
39 39 let errors = jqXHR.responseJSON.errors;
40   - console.log('errors', errors);
41 40 for (let field in errors) {
42 41 if (errors.hasOwnProperty(field)) {
43 42 $(`#${field}-error`).text(errors[field][0]);
resources/views/modals/send_login.blade.php
... ... @@ -51,3 +51,16 @@
51 51 </div>
52 52 </div>
53 53 </div>
  54 +<script>
  55 + $(document).ready(function () {
  56 + if (window.location.hash === '#sign') {
  57 + $.fancybox.open({
  58 + src: '#sign',
  59 + type: 'inline',
  60 + opts: {
  61 + touch: false
  62 + }
  63 + });
  64 + }
  65 + });
  66 +</script>