Skip to content

Commit

Permalink
Merge pull request Hexlet#1659 from artengin/iss1658
Browse files Browse the repository at this point in the history
Removed login via Github for RU locale. Closes Hexlet#1658
  • Loading branch information
fey authored Feb 21, 2025
2 parents 2adcb0c + a553def commit d2fe0c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@

<a class="mt-2 d-block" href="{{ route('register') }}">{{ __('login.register') }}</a>
<a class="mt-2 d-block" href="{{ route('password.request') }}">{{ __('login.reset_password') }}</a>
@if(app()->getLocale() !== 'ru')
<a href="{{ route('oauth.github') }}" class="mt-2 d-block"> {{ __('auth.with_github') }}</a>

@endif

{{ html()->form()->close() }}
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<div class="mt-2">
<a href="{{ route('login') }}">{{ __('register.login') }}</a>
<a class="mt-2 d-block" href="{{ route('password.request') }}">{{ __('register.reset_password') }}</a>
@if(app()->getLocale() !== 'ru')
<a href="{{ route('oauth.github') }}" class="mt-2 d-block"> {{ __('auth.with_github') }}</a>
@endif
</div>
{{ html()->form()->close() }}
</div>
Expand Down

0 comments on commit d2fe0c6

Please sign in to comment.