Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function taskFormSubmitted(Form $form)
- {
- $hash = $this->calculateHash($form->values->password) ;
- try
- {
- $this->registrations->registrationUser($form->values->username, $hash, $form->values->name);
- } catch(Exception $e)
- {
- //echo 'Chyba: ', $e->getMessage();
- if ( $e->getCode() == 23000) {
- $this->flashMessage('tenhle nick uz je pouzivan.', 'success');
- }
- else {
- ///////////////
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment