Display RingID during account migration

Change-Id: I909c611f817130c251036367611410687fe3ee72
Tuleap: #1184
diff --git a/src/accountmigrationview.cpp b/src/accountmigrationview.cpp
index 93d5c33..8bd5669 100644
--- a/src/accountmigrationview.cpp
+++ b/src/accountmigrationview.cpp
@@ -77,6 +77,7 @@
     /* main_view */
     GtkWidget *main_view;
     GtkWidget *label_account_alias;
+    GtkWidget *label_account_ringid;
     GtkWidget *image_avatar;
     GtkWidget *label_password_error;
     GtkWidget *entry_password;
@@ -143,6 +144,7 @@
     /* main_view */
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), AccountMigrationView, main_view);
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), AccountMigrationView, label_account_alias);
+    gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), AccountMigrationView, label_account_ringid);
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), AccountMigrationView, image_avatar);
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), AccountMigrationView, label_password_error);
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), AccountMigrationView, entry_password);
@@ -314,6 +316,8 @@
     g_signal_connect_swapped(username_registration_box, "username-registration-completed", G_CALLBACK(account_migration_completed), view);
 
     gtk_label_set_text(GTK_LABEL(priv->label_account_alias), priv->account->alias().toUtf8().constData());
+    // display the ringID (without "ring:")
+    gtk_label_set_text(GTK_LABEL(priv->label_account_ringid), URI(priv->account->username()).userinfo().toUtf8().constData());
 
     /* set the avatar picture */
     auto photo = GlobalInstances::pixmapManipulator().contactPhoto(