|
@@ -128,17 +128,20 @@ function materio_user_block_view_user_login_block_alter(array &$build, BlockPlug
|
|
|
function _materio_user_user_login_block_pre_render(array $build){
|
|
|
$user_links = &$build['content']['user_links'];
|
|
|
$items = &$user_links['#items'];
|
|
|
- // ksm($items);
|
|
|
- $items['create_account']['#url']->mergeOptions(array(
|
|
|
- "attributes" => array(
|
|
|
- "@click.prevent" => "create_account"
|
|
|
- )
|
|
|
- ));
|
|
|
- $items['request_password']['#url']->mergeOptions(array(
|
|
|
- 'attributes' => array(
|
|
|
- "@click.prevent" => "request_password"
|
|
|
- )
|
|
|
- ));
|
|
|
+
|
|
|
+ unset($items['create_account']);
|
|
|
+ // $items['create_account']['#url']->mergeOptions(array(
|
|
|
+ // "attributes" => array(
|
|
|
+ // "@click.prevent" => "create_account"
|
|
|
+ // )
|
|
|
+ // ));
|
|
|
+
|
|
|
+ // Do not handle passward reset with vue
|
|
|
+ // $items['request_password']['#url']->mergeOptions(array(
|
|
|
+ // 'attributes' => array(
|
|
|
+ // "@click.prevent" => "request_password"
|
|
|
+ // )
|
|
|
+ // ));
|
|
|
return $build;
|
|
|
}
|
|
|
|