Ejemplo n.º 1
0
 public function postRanpassword(Request $request)
 {
     $messages = ['wordnum.required' => 'Sorry, Mr Developer you must specify how many words you would like.', 'wordnum.min' => 'Please enter a number between 1-9', 'wordnum.max' => 'Thats to much work for me! Please enter a number between 1-9'];
     $this->validate($request, ['wordnum' => 'required|integer|min:1|max:9'], $messages);
     $specialsymbol = $request->input('specialsymbol');
     $includenum = $request->input('includenum');
     $wordnum = $request->input('wordnum');
     $secure = Helper::generatepw($specialsymbol, $includenum, $wordnum);
     return view('ranpassword.ranpassword', ['secure' => $secure]);
 }