Re: [grafana/grafana] Migrations: migrate admin user create page (#21506)

From: notifications@github.com
Domain: IP info github.com
MX-server: IP info out-5.smtp.github.com
Size: 2293 Bytes
Create: 2020-01-16
Update: 2020-01-16
Score: 0
Safe: Yes

Outbound domains: github.com |

@dprokop commented on this pull request.


In public/app/features/admin/UserCreatePage.tsx:

> +import Page from 'app/core/components/Page/Page';
+import { updateLocation } from 'app/core/actions';
+
+interface UserCreatePageProps {
+  navModel: NavModel;
+  updateLocation: typeof updateLocation;
+}
+
+interface UserDTO {
+  name: string;
+  password: string;
+  email?: string;
+  login?: string;
+}
+
+const createUser = async (user: UserDTO) => getBackendSrv().post('/api/admin/users', user);

Yes, an alert will be shown


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Want to protect your real email from messages like this? Use TempM email and be more secure on the internet.