<commit_before><?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


/*Route::get('/user', function (Request $request) {
    return $request->user();
})->middleware('auth:api');*/



Route::post('lock-up',function(Request $request){

	$user = \App\Model\User::find($request->input('id'));

    if (\Hash::check($request->input('password'), $user->password)) {
        return response()->json(TRUE);
    }

    return response()->json(FALSE);

});


Route::get('get-page-slug/{title}',function($title){
	 return response()->json(str_slug($title));
});<commit_msg>Forbid lock up screen when the user is locked out.<commit_after><?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


/*Route::get('/user', function (Request $request) {
    return $request->user();
})->middleware('auth:api');*/



Route::post('lock-up',function(Request $request){

    $user = \App\Model\User::find($request->input('id'));
    
    if ($user->isActive() && \Hash::check($request->input('password'), $user->password)) {
        return response()->json(TRUE);
    }

    return response()->json(FALSE);

});


Route::get('get-page-slug/{title}',function($title){
	 return response()->json(str_slug($title));
});
{'fraction_non_alphanumeric': 0.31272727272727274, 'fraction_numerical': 0.0, 'mean_word_length': 2.247892074198988, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2523951', 'n_tokens_mistral': 497, 'n_tokens_neox': 489, 'n_words': 126}