Skip to content

Commit 8e030fa

Browse files
committed
Fix for wrong notice lang after signup #233
1 parent 69ffc78 commit 8e030fa

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/lang/en/confide.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
),
3030

3131
'alerts' => array(
32-
'account_created' => 'Your account has been successfully created. Please check your email for the instructions on how to confirm your account.',
32+
'account_created' => 'Your account has been successfully created.',
33+
'instructions_sent' => 'Please check your email for the instructions on how to confirm your account.',
3334
'too_many_attempts' => 'Too many attempts. Try again in few minutes.',
3435
'wrong_credentials' => 'Incorrect username, email or password.',
3536
'not_confirmed' => 'Your account may not be confirmed. Check your email for the confirmation link',

src/lang/sk/confide.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
),
3030

3131
'alerts' => array(
32-
'account_created' => 'Váš účet bol úspešne vytvorený. Na email vám boli zaslané inštrukcie na aktiváciu účtu.',
32+
'account_created' => 'Váš účet bol úspešne vytvorený.',
33+
'instructions_sent' => 'Na email vám boli zaslané inštrukcie na aktiváciu účtu.',
3334
'too_many_attempts' => 'Prekročili ste limit pokusov o registráciu. Skúste to opäť o niekoľko minút.',
3435
'wrong_credentials' => 'Nesprávne užívateľské meno, email alebo heslo.',
3536
'not_confirmed' => 'Váš účet nie je aktivovaný. Inštrukcie na aktiváciu vám boli zaslané na email.',

src/views/generators/controller.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,19 @@ public function {{ (! $restful) ? 'store' : 'postIndex' }}()
4343
4444
if ( ${{ lcfirst(Config::get('auth.model')) }}->id )
4545
{
46+
@if ( Config::get('confide::signup_confirm') && Config::get('confide::signup_email'))
47+
$notice = Lang::get('confide::confide.alerts.account_created') . ' ' . Lang::get('confide::confide.alerts.instructions_sent');
48+
@else
49+
$notice = Lang::get('confide::confide.alerts.account_created');
50+
@endif
51+
4652
// Redirect with success message, You may replace "Lang::get(..." for your custom message.
4753
@if (! $restful)
4854
return Redirect::action('{{ $name }}@login')
4955
@else
5056
return Redirect::to('user/login')
5157
@endif
52-
->with( 'notice', Lang::get('confide::confide.alerts.account_created') );
58+
->with( 'notice', $notice );
5359
}
5460
else
5561
{

0 commit comments

Comments
 (0)